Rocket icon indicating copy to clipboard operation
Rocket copied to clipboard

Allow for optionally serving pre-compressed files.

Open hcldan opened this issue 5 months ago • 10 comments

There wasn't a good way to propagate the new option into NamedFile so I made a new constructor and added a flag to the struct. In order to make the flag understandable, I converted to a struct with members instead of a simple tuple.

I am not sure how to test the Content-Type returned... It seems that the original tests didn't check those headers and there's not really a clean way to pass that in the assert functions without refactoring a bunch of stuff.

hcldan avatar Jan 30 '24 21:01 hcldan