terreng / simple-web-server

Create a local web server in just a few clicks with an easy to use interface. Built with Electron.
https://simplewebserver.org
MIT License
266 stars 75 forks source link

Fix missing Content-Encoding: gzip header for .gz files #221

Closed terreng closed 1 month ago

terreng commented 1 month ago

Fixes #219

This PR was made by GitHub Copilot AI.

Add logic to handle .gz files and set Content-Encoding: gzip if the remaining string has a valid file extension.


For more details, open the Copilot Workspace session.

terreng commented 1 month ago

It didn't work and I don't know if it worked properly with the existing pre-compression option. It's hard for me to test this.