2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Use WHATWG URL API instead of url.parse() (#4852)

* replace url.parse with new whatwg url api

* remove comments

* use const instead of var

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
felipedamin
2022-09-14 16:40:08 -03:00
committed by GitHub
parent dd5ba02254
commit 738fa63661
2 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -706,7 +706,7 @@ describe('supports http with nodejs', function () {
}).listen(socketName, function () {
axios({
socketPath: socketName,
url: '/'
url: 'http://localhost:4444/socket'
})
.then(function (resp) {
assert.equal(resp.status, 200);