chiark / gitweb /
hippotat: Don't set an explicit `Content-Length'.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 25 Sep 2017 09:29:01 +0000 (10:29 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Sep 2017 10:15:48 +0000 (11:15 +0100)
commitb3e598b5ea54399982e0183a3e59835b0f82f077
tree41649a01d6a85b2b397167bcb35339b5a8fd6a23
parent5043eb307adeee7824f70edafb12e9bc3046a986
hippotat: Don't set an explicit `Content-Length'.

It turns out (a) that the existing Twisted machinery already sets a
`Content-Length' header on `POST' submissions, (b) that it's too stupid
to notice that the caller's already set one, and (c) that nginx rejects
`POST' requests with duplicate `Content-Length' headers with `400 Bad
Request', which turns out to be surprisingly hard to debug.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
hippotat