← Back to context

Comment by HumanOstrich

21 hours ago

You shouldn't be sending a body with a GET request. Sounds like your code is broken.

No. There are use cases for GET with body. Curl allows it. Node allows it. Bun doesn't.

  • There may be use-cases (and the RFC allows ignoring the SHOULD clause with enough reasoning), but GET does not have a request body as per specification, and a LOT of things drop it because of that (most notably - nginx! Also applies to HAProxy and Apache HTTP server afaik, but also a bunch of load balancers)