Skip to content

Commit

Permalink
Fixing accept header normalization (#1698)
Browse files Browse the repository at this point in the history
Fixes override behavior for `accept` header, when case does not match
the one used in defaults.js
  • Loading branch information
wejendorp authored and emilyemorehouse committed Aug 7, 2018
1 parent 90add80 commit b4c5d35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/defaults.js
Expand Up @@ -30,6 +30,7 @@ var defaults = {
adapter: getDefaultAdapter(),

transformRequest: [function transformRequest(data, headers) {
normalizeHeaderName(headers, 'Accept');
normalizeHeaderName(headers, 'Content-Type');
if (utils.isFormData(data) ||
utils.isArrayBuffer(data) ||
Expand Down

0 comments on commit b4c5d35

Please sign in to comment.