Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stream-http

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-http - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"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')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc