mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-08 20:59:59 +00:00

* Change the default HTTP/2 settings sent by Curl to match the ones that Chrome sends. They appear in the SETTINGS message in the beginning of the HTTP/2 handshake, which can be seen only after decrypting the TLS traffic. * Change the order of the HTTP/2 pseudo-headers ":authority", ":scheme" and ":path" in the HEADERS message. Curl sent them in a different order than Chrome.
9 lines
380 B
Diff
9 lines
380 B
Diff
--- curl-7.81.0-original/lib/http.h 2022-01-03 18:36:46.000000000 +0200
|
|
+++ curl-7.81.0/lib/http.h 2022-02-19 00:44:48.347052308 +0200
|
|
@@ -280,3 +280,4 @@
|
|
/* list of settings that will be sent */
|
|
- nghttp2_settings_entry local_settings[3];
|
|
+ /* curl-impersonate: Align HTTP/2 settings to Chrome's */
|
|
+ nghttp2_settings_entry local_settings[5];
|
|
size_t local_settings_num;
|