Skip to content

Commit

Permalink
Allow exclamation mark as valid header character (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
niksudan committed May 28, 2020
1 parent eadff53 commit 92d78df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.js
Expand Up @@ -44,7 +44,7 @@ function normalizeName(name) {
if (typeof name !== 'string') {
name = String(name)
}
if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name) || name === '') {
if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {
throw new TypeError('Invalid character in header field name')
}
return name.toLowerCase()
Expand Down

0 comments on commit 92d78df

Please sign in to comment.