hyperdrive-http
Advanced tools
Comparing version 3.4.1 to 3.4.2
@@ -36,3 +36,3 @@ var pump = require('pump') | ||
: segs.shift() | ||
var filename = segs.shift() | ||
var filename = segs.join('/') | ||
var op = 'get' | ||
@@ -45,3 +45,3 @@ | ||
} catch (e) { | ||
if (!filename) filename = key | ||
filename = segs.length ? [key].concat(segs).join('/') : key | ||
key = null | ||
@@ -117,8 +117,5 @@ } | ||
function onerror (status, res) { | ||
if (typeof status !== 'number') { | ||
console.error(status) | ||
status = 404 | ||
} | ||
if (typeof status !== 'number') status = 404 | ||
res.statusCode = status | ||
res.end() | ||
} |
{ | ||
"name": "hyperdrive-http", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "Handle Hyperdrive HTTP Requests", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
"callback-timeout": "^2.1.0", | ||
"dat-encoding": "^3.0.0", | ||
"dat-encoding": "^3.0.1", | ||
"mime": "^1.3.4", | ||
@@ -20,0 +20,0 @@ "ndjson": "^1.4.3", |
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
21316
9
466
4
Updateddat-encoding@^3.0.1