Comparing version 1.1.4 to 1.1.5
@@ -29,3 +29,3 @@ | ||
exports.version = '1.1.4'; | ||
exports.version = '1.1.5'; | ||
@@ -32,0 +32,0 @@ /** |
@@ -113,5 +113,4 @@ | ||
if ('function' == typeof fmt) { | ||
stream.write(fmt(req, res, function(str){ | ||
return format(str, req, res); | ||
}) + '\n', 'ascii'); | ||
var line = fmt(req, res, function(str){ return format(str, req, res); }); | ||
if (line) stream.write(line + '\n', 'ascii'); | ||
} else { | ||
@@ -118,0 +117,0 @@ stream.write(format(fmt, req, res) + '\n', 'ascii'); |
@@ -190,3 +190,4 @@ | ||
// transfer | ||
res.setHeader('Content-Type', type); | ||
var charset = mime.charsets.lookup(type); | ||
res.setHeader('Content-Type', type + (charset ? '; charset=' + charset : '')); | ||
res.setHeader('Accept-Ranges', 'bytes'); | ||
@@ -193,0 +194,0 @@ |
{ | ||
"name": "connect", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "High performance middleware framework", | ||
@@ -5,0 +5,0 @@ "keywords": ["framework", "web", "middleware", "connect", "rack"], |
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
76640