From 960395156dac51170c48a9eaa90a33a7e001ad41 Mon Sep 17 00:00:00 2001 From: zjx0905 <954270063@qq.com> Date: Mon, 24 Aug 2020 18:30:26 +0800 Subject: [PATCH] change defaults.ts --- .gitignore | 4 +++- src/defaults.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5b92bb8..5e8a253 100644 --- a/.gitignore +++ b/.gitignore @@ -109,4 +109,6 @@ dist package types coverage/ -yarn-error.log \ No newline at end of file +yarn-error.log +lib +es \ No newline at end of file diff --git a/src/defaults.ts b/src/defaults.ts index 6263842..b89c0e4 100644 --- a/src/defaults.ts +++ b/src/defaults.ts @@ -23,10 +23,10 @@ const defaults: AxiosRequestConfig = { get: {}, head: {}, post: { - 'Context-Type': 'application/x-www-form-urlencoded; charset=utf-8', + 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', }, put: { - 'Context-Type': 'application/x-www-form-urlencoded; charset=utf-8', + 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', }, delete: {}, trace: {},