Skip to content

Commit

Permalink
Merge pull request #190 from axios/v1.x
Browse files Browse the repository at this point in the history
Create a new pull request by comparing changes across two branches
  • Loading branch information
GulajavaMinistudio committed Mar 23, 2023
2 parents 599f0ee + e7decef commit 128d6b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/core/AxiosHeaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ function parseTokens(str) {
return tokens;
}

function isValidHeaderName(str) {
return /^[-_a-zA-Z]+$/.test(str.trim());
}
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());

function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
if (utils.isFunction(filter)) {
Expand Down

0 comments on commit 128d6b4

Please sign in to comment.