Skip to content

Commit adaede5

Browse files
authored
Update server.ts
1 parent 70f2e23 commit adaede5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/dev-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ class DevServer {
223223
serveStatic(asset.dir, {
224224
dotfiles: "allow",
225225
setHeaders(res, path) {
226+
// https://github.com/nitrojs/nitro/issues/3379
226227
if (path.endsWith(".gz")) {
227228
res.setHeader("Content-Encoding", "gzip");
228229
}
229-
// Or expand to other encodings if needed
230230
},
231231
})
232232
)

0 commit comments

Comments
 (0)