mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 16:17:29 +00:00
String OUT URLs before logging
This commit is contained in:
parent
3297333312
commit
06b54e48b2
@ -1,7 +1,7 @@
|
||||
const fetch = require("node-fetch").default
|
||||
|
||||
function request(url) {
|
||||
console.log("-> [OUT]", url) // todo: make more like pinski?
|
||||
console.log("-> [OUT]", String(url)) // todo: make more like pinski?
|
||||
return fetch(url, {
|
||||
headers: {
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"
|
||||
|
Loading…
Reference in New Issue
Block a user