Socket
Socket
Sign inDemoInstall

parse-headers

Package Overview
Dependencies
3
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "parse-headers",
"version": "1.0.1",
"version": "1.0.2",
"description": "Parse http headers, works with browserify/xhr",

@@ -5,0 +5,0 @@ "main": "parse-headers.js",

@@ -11,3 +11,3 @@ var trim = require('trim')

forEach(
headers.split('\n')
trim(headers).split('\n')
, function (row) {

@@ -14,0 +14,0 @@ var index = row.indexOf(':')

var parse = require('./parse-headers')
, headers = [
'Date: Sun, 17 Aug 2014 16:24:52 GMT'
''
, 'Date: Sun, 17 Aug 2014 16:24:52 GMT'
, 'Content-Type: text/html; charset=utf-8'
, 'Transfer-Encoding: chunked'
, ''
]

@@ -8,0 +10,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc