2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

fix: restore proxy config backwards compatibility with 0.x (#5097)

* fix: restore proxy config backwards compatibility with 0.x

* Formatting

Co-authored-by: Patrick Petrovic <patrick@Air-de-Patrick.lan>
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Patrick Petrovic
2022-10-13 20:55:20 +01:00
committed by GitHub
parent 83454a55f6
commit 717f476b0f
3 changed files with 41 additions and 4 deletions
+1
View File
@@ -482,6 +482,7 @@ These are the available config options for making requests. Only the `url` is re
proxy: {
protocol: 'https',
host: '127.0.0.1',
// hostname: '127.0.0.1' // Takes precedence over 'host' if both are defined
port: 9000,
auth: {
username: 'mikeymike',