Skip to content

Commit

Permalink
Merge branch 'v1.x' of https://github.com/axios/axios into v1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS committed Apr 5, 2023
2 parents 81a8bd6 + e7decef commit f8bb158
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 f8bb158

Please sign in to comment.