I have noticed that my yesod site does not respond with Content-Length header.
I have tried to add it with addHeader (in the Handler) with no result.
I am sure that I am missing something very fundamental, but do not see it.
My handlers are Handler Html handlers. I have suceeded adding a custom header using addHeader right before defaultLayout...
Content-Length is a special header, in the sense that its presence when incorrect will mess up your response. A number of different components will end up stripping it out. My guess in this case is that your response is being GZIP compressed, which necessarily removes the content-length header.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With