mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
fix: use content-encoding: deflate when returning compressed content
the RFCs don't mandate it but it seems like chrome and firefox only understand that.
This commit is contained in:
parent
64df8616f9
commit
4023a5ab79
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ let cb_encode_compressed_stream
|
|||
headers=
|
||||
(resp.headers
|
||||
|> S.Headers.remove "Content-Length"
|
||||
|> S.Headers.set "Transfer-Encoding" "deflate, chunked");
|
||||
|> S.Headers.set "Content-Encoding" "deflate");
|
||||
body=`Stream (encode_deflate_stream_ ~buf_size str);
|
||||
}
|
||||
) else None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue