mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Fixed & Imporoved AxiosHeaders class (#5224)
* Refactored AxiosHeaders class; * Added support for instances of AxiosHeaders as a value for the headers option; Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -203,7 +203,7 @@ export default function httpAdapter(config) {
|
||||
data: convertedData,
|
||||
status: 200,
|
||||
statusText: 'OK',
|
||||
headers: {},
|
||||
headers: new AxiosHeaders(),
|
||||
config
|
||||
});
|
||||
}
|
||||
@@ -588,4 +588,4 @@ export default function httpAdapter(config) {
|
||||
});
|
||||
}
|
||||
|
||||
export const __setProxy = setProxy;
|
||||
export const __setProxy = setProxy;
|
||||
|
||||
Reference in New Issue
Block a user