Stop logging proxy requests again

This commit is contained in:
Cadence Ember 2020-04-17 01:13:55 +12:00
parent 54f5a7a02c
commit a6e7252566
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ async function proxyResource(url, suggestedHeaders = {}, refreshCallback = null)
for (const key of ["accept", "accept-encoding", "accept-language", "range"]) {
if (suggestedHeaders[key]) headersToSend[key] = suggestedHeaders[key]
}
const sent = request(url, {headers: headersToSend})
const sent = request(url, {headers: headersToSend}, {log: false})
const stream = await sent.stream()
const response = await sent.response()
// console.log(response.status, response.headers)