Skip to content

Commit c383571

Browse files
authored
Merge pull request #43 from IBM/fix-put
fix(rest-connector): allow sending formdata on put request
2 parents e06bd7c + c9a0932 commit c383571

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Connection/RESTConnector.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,10 @@ private IEnumerator ProcessRequestQueue()
488488
Log.Error("RESTConnector.ProcessRequestQueue()", "Exception when initializing WWWForm: {0}", e.ToString());
489489
}
490490
unityWebRequest = UnityWebRequest.Post(url, form);
491+
if (req.HttpMethod == UnityWebRequest.kHttpVerbPUT)
492+
{
493+
unityWebRequest.method = "PUT";
494+
}
491495
}
492496
else if (req.Send != null)
493497
{

0 commit comments

Comments
 (0)