Skip to content

Commit

Permalink
Changing send method to upper case all HTTP methods. Chrome xhr does …
Browse files Browse the repository at this point in the history
…not do this for methods like PATCH. This causes most servers to throw "Method not Implemented". Not sure if you want/need to toUpper other method around the code like get. I already did this for methodsWithBody.
  • Loading branch information
scott2449 committed May 25, 2012
1 parent e953ae0 commit 2d2b8f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/js/requester.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ postman.currentRequest = {
dataMode:"params",
isFromCollection: false,
collectionRequestId: "",
methodsWithBody:["post", "put", "patch", "delete"],
methodsWithBody:["POST", "PUT", "PATCH", "DELETE"],
areListenersAdded:false,
startTime:0,
endTime:0,
Expand Down Expand Up @@ -1467,7 +1467,7 @@ postman.currentRequest = {
postman.currentRequest.xhr = xhr;

var url = this.url;
var method = this.method;
var method = this.method.toUpperCase();
var data = this.body.data;
var originalData = data;
var finalBodyData;
Expand Down

0 comments on commit 2d2b8f6

Please sign in to comment.