Skip to content

Commit b0723ff

Browse files
committed
standard
1 parent 9760271 commit b0723ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const http = require('http')
66
const https = require('https')
77
const once = require('once')
88
const querystring = require('querystring')
9-
const url = require('url') // eslint-ignore-line
9+
const url = require('url')
1010

1111
const isStream = o => o !== null && typeof o === 'object' && typeof o.pipe === 'function'
1212

@@ -15,7 +15,7 @@ function simpleGet (opts, cb) {
1515
cb = once(cb)
1616

1717
if (opts.url) {
18-
const { hostname, port, protocol, auth, path } = url.parse(opts.url)
18+
const { hostname, port, protocol, auth, path } = url.parse(opts.url) // eslint-disable-line node/no-deprecated-api
1919
delete opts.url
2020
if (!hostname && !port && !protocol && !auth) opts.path = path // Relative redirect
2121
else Object.assign(opts, { hostname, port, protocol, auth, path }) // Absolute redirect

0 commit comments

Comments
 (0)