OpenRasta overwriting Content-Length header in HEAD responses

Posted by Dave Nichol on Stack Overflow See other posts from Stack Overflow or by Dave Nichol
Published on 2012-03-26T19:15:07Z Indexed on 2012/03/30 11:29 UTC
Read the original article Hit count: 244

Filed under:

I'm creating a pretty simple HTTP service using OpenRasta. For HEAD requests, the HTTP 1.1 spec states that HEAD requests should have the Content-Length set to "the size of the entity-body that would have been sent had the request been a GET" (section 14.13).

However, OpenRasta apparently sees that the response body is empty and automatically sets the Content-Length header to "0".

What is the recommended way to override this behavior?

Thanks-

© Stack Overflow or respective owner

Related posts about openrasta