Comparing version 5.19.0 to 5.19.1
@@ -307,2 +307,5 @@ 'use strict' | ||
) { | ||
if (headerCharRegex.exec(val) !== null) { | ||
throw new InvalidArgumentError(`invalid ${key} header`) | ||
} | ||
// Consumed by Client | ||
@@ -309,0 +312,0 @@ request.host = val |
@@ -27,6 +27,8 @@ // https://github.com/Ethan-Arrowood/undici-fetch | ||
// potentialValue. | ||
return potentialValue.replace( | ||
/^[\r\n\t ]+|[\r\n\t ]+$/g, | ||
'' | ||
) | ||
// Trimming the end with `.replace()` and a RegExp is typically subject to | ||
// ReDoS. This is safer and faster. | ||
let i = potentialValue.length | ||
while (/[\r\n\t ]/.test(potentialValue.charAt(--i))); | ||
return potentialValue.slice(0, i + 1).replace(/^[\r\n\t ]+/, '') | ||
} | ||
@@ -33,0 +35,0 @@ |
{ | ||
"name": "undici", | ||
"version": "5.19.0", | ||
"version": "5.19.1", | ||
"description": "An HTTP/1.1 client, written from scratch for Node.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://undici.nodejs.org", |
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
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
1078666
18129