mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
add Content-Length, fixes #238
This commit is contained in:
parent
7f95a34e29
commit
eae7745758
@ -31,6 +31,7 @@ module.exports = function(request, response, result) {
|
||||
// These headers are the same for every response
|
||||
var headers = {
|
||||
"Content-Type": result.body && result.type || "text/plain",
|
||||
"Content-Length": Buffer.from(result.body || "").length,
|
||||
"Cache-Control": "max-age=" + config.caching.browser,
|
||||
"Response-Time": Date.now() - request.start,
|
||||
"X-Request-ID": request.id,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user