@crawlee/http-client 4.0.0-beta.189 → 4.0.0-beta.190
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.
- package/base-http-client.js +2 -2
- package/package.json +3 -3
package/base-http-client.js
CHANGED
|
@@ -119,8 +119,8 @@ export class BaseHttpClient {
|
|
|
119
119
|
const { proxyUrl, cookieJar, signal, fingerprint, ignoreTlsErrors } = await this.resolveRequestContext(options);
|
|
120
120
|
currentRequest = initialRequest.clone();
|
|
121
121
|
while (true) {
|
|
122
|
-
|
|
123
|
-
const response = await this.fetch(currentRequest, {
|
|
122
|
+
// Like `fetch`, set the jar cookies on a copy, so that the next redirect hop does not inherit them
|
|
123
|
+
const response = await this.fetch(await this.applyCookies(new Request(currentRequest), cookieJar), {
|
|
124
124
|
signal,
|
|
125
125
|
proxyUrl,
|
|
126
126
|
cookieJar,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/http-client",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.190",
|
|
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"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@crawlee/types": "4.0.0-beta.
|
|
50
|
+
"@crawlee/types": "4.0.0-beta.190",
|
|
51
51
|
"tough-cookie": "^6.0.0"
|
|
52
52
|
},
|
|
53
53
|
"lerna": {
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "0a6af5ff4704225ddb009a7dd58bdeaad48ebb14"
|
|
61
61
|
}
|