Fix headers in Cyclone custom bare

Referer is misspelled incorrectly. Also, the Cookie header name was
incorrect, and `req.cookies` does not exist (as far as I know anyway).
This commit is contained in:
CountBleck 2022-08-27 20:57:02 -07:00 committed by GitHub
parent 26ee852336
commit 1e932d9518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,9 +45,9 @@ async function fetchBare(url, res, req) {
var options = {
method: req.method,
headers: {
"Refer": url.href,
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
"cookies": req.cookies,
"Referer": url.href,
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36",
"Cookie": req.headers.cookie,
},
}