Skip to content

Set Content-Length header to 0 on empty JSON POSTs

Scott Sweeny requested to merge ssweeny/fractal:post-content-length into master

When using lighttpd as a reverse proxy empty POSTs get rejected by the server if they don't have Content-Length set to zero, so some calls like marking a room as read fail to make it to the homeserver.

fixes: GNOME/fractal#475

Edited by Scott Sweeny

Merge request reports