Skip to content

Commit

Permalink
support POST requests with empty body (instead of converting them to …
Browse files Browse the repository at this point in the history
…GET)
  • Loading branch information
ikreymer committed Apr 11, 2024
1 parent aaf1c30 commit 241d721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/requestresponseinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ class RequestResponseInfo

const reqUrl = this.url;

if (this.postData) {
if (this.method && this.method !== "GET") {
const convData = {
url: this.url,
headers: reqHeaders.headers,
method: this.method,
postData: this.postData,
postData: this.postData || "",
};
if (postToGetUrl(convData)) {
//this.requestBody = convData.requestBody;
Expand Down

0 comments on commit 241d721

Please sign in to comment.