On Thursday, June 05, 2014 5:37:43 PM Christian Grothoff wrote: > On 06/05/2014 06:47 PM, Luke Dashjr wrote: > > At some point, the Connection: Keep-Alive header was added by > > libmicrohttpd. Unfortunately, in some circumstances, this is breaking a > > buggy client I have to support. Is it possible to turn it off? Reading > > the code, I don't see a way (and it seems to even override a user-set > > Connection header). > > Hmm. The goal was that if the application explicitly sets a connection > header (Connection: close), MHD should obey that choice and not override > it in any way (and close the connection after the request). I'm also > pretty positive there is code that does that check; however, if it fails > for you, I'd certainly appreciate a test.
I'm thinking circumstances like Connection: foobar > What is not possible right now is to force MHD to not generate any > "Connection" > header; that'd need an API extension. But, try adding "Connection: > close" first, > and if that somehow fails to show up properly on the wire, please send a > testcase > and I'll be happy to take a close look at it. Connection: close (or really *any* Connection header) will also break the client in question :( Luke
