stream-http
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "stream-http", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Streaming http in the browser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,5 @@ var Buffer = require('buffer').Buffer | ||
var COPIES = 5 | ||
// IE8 tends to throw up modal dialogs complaining about scripts running too long | ||
// Since streaming doesn't actually work there anyway, just use one copy | ||
var COPIES = skipVerification ? 1 : 20 | ||
var MIN_PIECES = 2 | ||
@@ -20,0 +22,0 @@ |
@@ -18,2 +18,9 @@ var basicAuth = require('basic-auth') | ||
// This should make sure bodies aren't cached | ||
// so the streaming tests always pass | ||
app.use(function (req, res, next) { | ||
res.setHeader('Cache-Control', 'no-store') | ||
next() | ||
}) | ||
app.get('/testHeaders', function (req, res) { | ||
@@ -47,3 +54,2 @@ var parsed = url.parse(req.url, true) | ||
if (!user || user.name !== 'TestUser' || user.pass !== 'trustno1') { | ||
console.log(user) | ||
res.setHeader('WWW-Authenticate', 'Basic realm="example"') | ||
@@ -50,0 +56,0 @@ res.end('Access denied') |
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
65203
846