@crawlee/http 4.0.0-beta.126 → 4.0.0-beta.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -384,7 +384,7 @@ export class HttpCrawler extends BasicCrawler {
|
|
|
384
384
|
const { response: reencodedResponse, encoding } = this.encodeResponse(request, response, charset);
|
|
385
385
|
const contentType = { type, encoding };
|
|
386
386
|
if (status >= 400 && status <= 599) {
|
|
387
|
-
this.
|
|
387
|
+
this.statistics.registerStatusCode(status);
|
|
388
388
|
}
|
|
389
389
|
if (this.isErrorStatusCode(status)) {
|
|
390
390
|
const body = await reencodedResponse.text(); // TODO - this always uses UTF-8 (see https://developer.mozilla.org/en-US/docs/Web/API/Request/text)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/http",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.128",
|
|
4
4
|
"description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.0.0"
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@apify/timeout": "^0.4.4",
|
|
51
51
|
"@apify/utilities": "^2.15.5",
|
|
52
|
-
"@crawlee/basic": "4.0.0-beta.
|
|
53
|
-
"@crawlee/core": "4.0.0-beta.
|
|
54
|
-
"@crawlee/http-client": "4.0.0-beta.
|
|
55
|
-
"@crawlee/types": "4.0.0-beta.
|
|
56
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
52
|
+
"@crawlee/basic": "4.0.0-beta.128",
|
|
53
|
+
"@crawlee/core": "4.0.0-beta.128",
|
|
54
|
+
"@crawlee/http-client": "4.0.0-beta.128",
|
|
55
|
+
"@crawlee/types": "4.0.0-beta.128",
|
|
56
|
+
"@crawlee/utils": "4.0.0-beta.128",
|
|
57
57
|
"@types/content-type": "^1.1.8",
|
|
58
58
|
"cheerio": "^1.0.0",
|
|
59
59
|
"content-type": "^1.0.5",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "2c017f04d564e8fa13855bf19f31f43cb65f4f44"
|
|
74
74
|
}
|