1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-26 09:37:28 +00:00

String OUT URLs before logging

This commit is contained in:
Cadence Fish 2020-01-29 23:36:16 +13:00
parent 3297333312
commit 06b54e48b2
No known key found for this signature in database
GPG Key ID: 81015DF9AA8607E1

View File

@ -1,7 +1,7 @@
const fetch = require("node-fetch").default const fetch = require("node-fetch").default
function request(url) { 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, { return fetch(url, {
headers: { 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" "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"