mirror of
https://github.com/tenrok/axios.git
synced 2026-06-05 16:42:32 +03:00
Fixing accept header normalization (#1698)
Fixes override behavior for `accept` header, when case does not match the one used in defaults.js
This commit is contained in:
committed by
Emily Morehouse
parent
90add808a4
commit
b4c5d35d28
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user