Comparing version 0.6.13 to 0.6.14
@@ -28,6 +28,19 @@ 'use strict'; | ||
} | ||
// body-parser does not support any other content encodings as specified below | ||
// we ignore any encoding that is different (see https://github.com/expressjs/body-parser/issues/100) | ||
app.use(function (req, res, next) { | ||
let encoding = (req.headers['content-encoding'] || 'identity').toLowerCase(); | ||
if (encoding !== 'deflate' || | ||
encoding !== 'gzip' || | ||
encoding !== 'identity') { | ||
delete req.headers['content-encoding']; | ||
} | ||
next(); | ||
}) | ||
app.use(bodyParser.raw({ | ||
inflate: true, | ||
limit: '268435kb', // Maximum size of a single PUT Blob operation as per spec. | ||
type: function(type) { return true; } | ||
type: function (type) { | ||
return true; | ||
} | ||
})); | ||
@@ -34,0 +47,0 @@ app.use(express.static(env.localStoragePath)); |
{ | ||
"name": "azurite", | ||
"version": "0.6.13", | ||
"version": "0.6.14", | ||
"description": "A lightweight server clone of Azure Blob Storage that simulates most of the commands supported by it with minimal dependencies.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130971
2847