1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 08:07:30 +00:00

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

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)