Compare commits
2 Commits
0a8a7ff9a5
...
a406eb584d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a406eb584d | ||
|
|
2be3ea9bbb |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.201.3",
|
||||
"version": "1.201.4",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "traxxx",
|
||||
"version": "1.201.3",
|
||||
"version": "1.201.4",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@casl/ability": "^5.2.2",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "traxxx",
|
||||
"version": "1.201.3",
|
||||
"version": "1.201.4",
|
||||
"description": "All the latest porn releases in one place",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -549,6 +549,8 @@ async function fetchHttpSource(source, tempFileTarget, hashStream) {
|
||||
throw new Error(`Response ${res.status} not OK`);
|
||||
}
|
||||
|
||||
console.log(res.headers);
|
||||
|
||||
return {
|
||||
mimetype: (source.expectType
|
||||
? source.expectType[res.headers['content-type']]
|
||||
|
||||
@@ -122,6 +122,7 @@ async function finalizeResult(res, options) {
|
||||
body: html,
|
||||
html,
|
||||
status: res.statusCode,
|
||||
headers: res.headers,
|
||||
document: window?.document || null,
|
||||
window,
|
||||
ok: res.statusCode >= 200 && res.statusCode <= 299,
|
||||
@@ -132,6 +133,7 @@ async function finalizeResult(res, options) {
|
||||
...res,
|
||||
body: res.body,
|
||||
status: res.statusCode,
|
||||
headers: res.headers,
|
||||
ok: res.statusCode >= 200 && res.statusCode <= 299,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user