mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-23 00:27:30 +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
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user