mirror of
https://github.com/typicode/json-server.git
synced 2025-08-01 09:13:32 +08:00
Add switch for GZIP Content-Encoding
This commit is contained in:
@ -19,7 +19,9 @@ module.exports = function (opts) {
|
||||
var arr = []
|
||||
|
||||
// Compress all requests
|
||||
arr.push(compression())
|
||||
if (!opts.noGzip) {
|
||||
arr.push(compression())
|
||||
}
|
||||
|
||||
// Logger
|
||||
if (opts.logger) {
|
||||
|
Reference in New Issue
Block a user