You are not logged in.
Pages: 1
There is wrong "Content-Encoding: gzip" header when ReturnFile is used (for example, in TMvcRunOnRestServer). In that case server returns uncompressed file with encoding header and browser throws error net::ERR_CONTENT_DECODING_FAILED.
I think problem is in THttpRequestContext.CompressContentAndFinalizeHead.
Variable fContentEncoding reset in function CompressContent, but if ContentStream <> nil then this function is not called, and fContentEncoding contains value from previous response.
I think we must clear fContentEncoding anywhere.
Offline
You are right.
Please try with
https://github.com/synopse/mORMot2/commit/5419242e
Offline
Pages: 1