parse-headers
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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 @@ |
5903
49