Comparing version 0.1.97 to 0.1.98
@@ -40,12 +40,3 @@ "use strict"; | ||
const opts = Object.assign(Object.assign({}, initialOptions), { body, | ||
method, signal: controller.signal, headers: Object.assign({ | ||
// default content types http://bit.ly/2N2ovOZ | ||
// Accept: 'application/json', | ||
'Content-Type': 'application/json' }, initialOptions.headers) }); | ||
if (utils_1.isBrowser && | ||
(routeOrBody instanceof URLSearchParams || | ||
routeOrBody instanceof FormData || | ||
bodyAs2ndParam instanceof FormData)) { | ||
delete opts.headers['Content-Type']; | ||
} | ||
method, signal: controller.signal, headers: Object.assign({}, initialOptions.headers) }); | ||
if (method === GET || method === OPTIONS) | ||
@@ -52,0 +43,0 @@ delete opts.body; |
{ | ||
"name": "use-http", | ||
"version": "0.1.97", | ||
"version": "0.1.98", | ||
"homepage": "http://use-http.com", | ||
@@ -30,5 +30,5 @@ "main": "dist/index.js", | ||
"eslint": "^6.0.1", | ||
"eslint-config-prettier": "6.4.0", | ||
"eslint-plugin-jest": "22.20.1", | ||
"eslint-plugin-jest-formatting": "1.1.1", | ||
"eslint-config-prettier": "6.5.0", | ||
"eslint-plugin-jest": "22.21.0", | ||
"eslint-plugin-jest-formatting": "1.2.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.1", | ||
@@ -38,3 +38,3 @@ "eslint-plugin-prettier": "^3.1.0", | ||
"eslint-plugin-react-hooks": "^2.0.0", | ||
"eslint-plugin-sonarjs": "^0.4.0", | ||
"eslint-plugin-sonarjs": "^0.5.0", | ||
"eslint-watch": "^5.1.2", | ||
@@ -41,0 +41,0 @@ "jest": "^24.7.1", |
Sorry, the diff of this file is not supported yet
84390
770