mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 16:17:29 +00:00
Stop logging proxy requests again
This commit is contained in:
parent
54f5a7a02c
commit
a6e7252566
@ -38,7 +38,7 @@ async function proxyResource(url, suggestedHeaders = {}, refreshCallback = null)
|
|||||||
for (const key of ["accept", "accept-encoding", "accept-language", "range"]) {
|
for (const key of ["accept", "accept-encoding", "accept-language", "range"]) {
|
||||||
if (suggestedHeaders[key]) headersToSend[key] = suggestedHeaders[key]
|
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 stream = await sent.stream()
|
||||||
const response = await sent.response()
|
const response = await sent.response()
|
||||||
// console.log(response.status, response.headers)
|
// console.log(response.status, response.headers)
|
||||||
|
Loading…
Reference in New Issue
Block a user