Skip to content

Commit

Permalink
Only add Content-Length header on non-GET requests by default
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Sep 23, 2024
1 parent 070c346 commit 5b0ae64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ it("should include correct default headers", async () => {
Accept: "*/*",
"Accept-Encoding": "gzip",
Connection: "close",
"Content-Type": "application/json",
"Content-Length": 15,
"Content-Type": "application/json",
Host: "putfake.ts:443",
"User-Agent": "jsh",
},
Expand Down

0 comments on commit 5b0ae64

Please sign in to comment.