Nancy.Gzip
Nancy.Gzip copied to clipboard
ContentLengthIsTooSmall() seems to be useless
Checking, if Content-Length is set in response header has no effect, because there never seem to be any headers set automatically by Nancy up to that moment.
I tried this with your example project, too.
Is there any other way to prevent compressing small responses?
Checking, if Content-Length is set in response header has no effect, because there never seem to be any headers set automatically by Nancy up to that moment.
It looks like you can write this header property when you know the length of your response.