perf: set header can use For Qs (#562)

set header can use For Qs
This commit is contained in:
Yirius 2021-05-05 21:19:12 +08:00 committed by GitHub
parent bf365e26e5
commit 5724bc5b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ export class VAxios {
// support form-data
supportFormData(config: AxiosRequestConfig) {
const headers = config.headers;
const headers = config.headers || this.options.headers;
const contentType = headers?.['Content-Type'] || headers?.['content-type'];
if (