diff options
author | Whyme Lyu <callme5long@gmail.com> | 2023-12-11 10:11:16 +0000 |
---|---|---|
committer | Whyme Lyu <callme5long@gmail.com> | 2023-12-11 10:11:16 +0000 |
commit | 9a6ecd74151814aee435bc039c45f6c932ead7c2 (patch) | |
tree | c8004d3e5ae590e571daef3d50f7570dae67cfde /tests/serve_request.rs | |
parent | Bump deps (diff) | |
download | miniserve-9a6ecd74151814aee435bc039c45f6c932ead7c2.tar.gz miniserve-9a6ecd74151814aee435bc039c45f6c932ead7c2.zip |
Remove header Content-Encoding when archiving
Content-Encoding is a representation header which kinda means "same
content, presented differently to different clients" or "encoded
& decoded on-the-fly, guided by content negotiation".
In the case of downloading an archive, MDN docs explicitly says that
(quoted from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding):
> If the original media is encoded in some way (e.g. a zip file) then this
> information would not be included in the Content-Encoding header.
Thus this patch. Also fixes !1187.
Diffstat (limited to 'tests/serve_request.rs')
0 files changed, 0 insertions, 0 deletions