braid-http 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/braid-http-client.js +1 -1
- package/package.json +1 -1
package/braid-http-client.js
CHANGED
|
@@ -455,7 +455,7 @@ function parse_headers (input) {
|
|
|
455
455
|
|
|
456
456
|
// Let's parse them! First define some variables:
|
|
457
457
|
var headers = {},
|
|
458
|
-
header_regex = /([\w-_]+):\s?(.*)\r?\n
|
|
458
|
+
header_regex = /([\w-_]+):\s?(.*)\r?\n?/gy, // Parses one line a time
|
|
459
459
|
match,
|
|
460
460
|
found_last_match = false
|
|
461
461
|
|