Skip to content

Commit

Permalink
fix: import URL from url module
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiahdz authored and Claudia Hernández committed Aug 14, 2020
1 parent 62ce833 commit cd35987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function logRequest (method, res, startTime, opts) {

let urlStr
try {
const URL = require('url')
const { URL } = require('url')
const url = new URL(res.url)
urlStr = res.url.replace(url.password, '***')
} catch (er) {
Expand Down

0 comments on commit cd35987

Please sign in to comment.