Skip to content

Commit

Permalink
Remove body for GET
Browse files Browse the repository at this point in the history
  • Loading branch information
oklemenz2 committed Jul 16, 2024
1 parent 0d24c94 commit 08a64a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4771,7 +4771,7 @@ function cov2ap(options = {}) {
statusCodeText = (result && result.statusCodeText) || statusCodeText;
body = (result && result.body) || body;
headers = (result && result.headers) || headers;
if (["DELETE"].includes(method)) {
if (["HEAD", "OPTIONS", "GET", "DELETE"].includes(method)) {
body = "";
}
} catch (err) {
Expand Down

0 comments on commit 08a64a2

Please sign in to comment.