CrowCpp / Crow

A Fast and Easy to use microframework for the web.
https://crowcpp.org
Other
3.3k stars 364 forks source link

Do not compress when body is empty #921

Closed paulharris closed 4 weeks ago

paulharris commented 1 month ago

This resolves #920 ... keep the body empty if already empty. Compression adds compression headers and overhead, and breaks assumptions later on when processing (eg) error 404.