#HttpPost

Ænðr E. Feldstrawaeveltstra
2021-05-21

It looks like decided to completely omit the header of an request if the content length equals 0 (zero). That's possible with HTTP/2, but not with HTTP/1.0 or 1.1.

The server we talk to requires a content-length header even if the payload is empty. Does downgrading to HTTP/1.1 change the behavior of ? Does that get the header included?

Or do we have to override default header filtering?

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst