Closed terreng closed 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.
.gz
Content-Encoding: gzip
renderFileContents
WSC/handlers.js
Content-Type
Content-Encoding
For more details, open the Copilot Workspace session.
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.
Fixes #219
This PR was made by GitHub Copilot AI.
Add logic to handle
.gz
files and setContent-Encoding: gzip
if the remaining string has a valid file extension.renderFileContents
method inWSC/handlers.js
to check if the file has a.gz
extension..gz
extension and check if the remaining string has a valid file extension.Content-Type
andContent-Encoding
headers if the remaining string has a valid file extension.For more details, open the Copilot Workspace session.