Comparing version 2.0.0-rc2 to 2.0.0-rc3
{ | ||
"name": "spdy", | ||
"version": "2.0.0-rc2", | ||
"version": "2.0.0-rc3", | ||
"description": "Implementation of the SPDY protocol on node.js.", | ||
@@ -32,3 +32,3 @@ "license": "MIT", | ||
"select-hose": "^2.0.0", | ||
"spdy-transport": "^1.1.1" | ||
"spdy-transport": "^1.1.2" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
26
test.js
var spdy = require('./'); | ||
var zlib = require('zlib'); | ||
var fs = require('fs'); | ||
var heapdump = require('heapdump'); | ||
@@ -9,4 +11,26 @@ | ||
var headers = fs.readFileSync('/tmp/1').toString().split(/\n/g); | ||
headers = headers.map(function(line) { | ||
if (!line) | ||
return {}; | ||
line = line.replace(/^[^=]+=|[^\]]+$/g, '') | ||
var keys = JSON.parse(line); | ||
var res = {}; | ||
for (var i = 0; i < keys.length; i++) | ||
res[keys[i].name] = keys[i].value; | ||
return res; | ||
}); | ||
spdy.createServer(options, function(req, res) { | ||
res.end('ok'); | ||
var test = headers.shift() | ||
console.log('-----'); | ||
res.writeHead(200, test); | ||
console.log('-----'); | ||
var gzip = zlib.createGzip(); | ||
gzip.end('{}'); | ||
gzip.pipe(res); | ||
}).listen(1443); |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
54715
1141
2
Updatedspdy-transport@^1.1.2