Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Fix "PUT" requests being sent as "POST" #33

Merged
merged 1 commit into from
Jun 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ else if(type == "form")
break;
case "put" :
if(this.type == null || this.type.equalsIgnoreCase("octet"))
req.post(ctx, url, entity, "application/octet-stream", handler);
req.put(ctx, url, entity, "application/octet-stream", handler);
else
req.post(ctx, url, entity, "multipart/form-data", handler);
req.put(ctx, url, entity, "multipart/form-data", handler);
break;
case "delete" :
req.delete(url, handler);
Expand Down