From 4f71a1650e8031b81c5081096b14f22bf5526e20 Mon Sep 17 00:00:00 2001 From: lwthiker Date: Sat, 19 Feb 2022 20:34:43 +0200 Subject: [PATCH] Fix the order of HTTP2 headers in Firefox After inspecting an encrypted TLS session, I noticed that Firefox sends the HTTP2 pseudo headers in the order :method, :path, :authority, :scheme while curl was sending them with :authority being the last one. This patch fixes the order of HTTP2 headers in curl to match Firefox. --- firefox/patches/curl-http2-c.patch | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 firefox/patches/curl-http2-c.patch diff --git a/firefox/patches/curl-http2-c.patch b/firefox/patches/curl-http2-c.patch new file mode 100644 index 0000000..e4ce4c4 --- /dev/null +++ b/firefox/patches/curl-http2-c.patch @@ -0,0 +1,8 @@ +--- curl-7.81.0-original/lib/http2.c 2022-01-03 18:36:46.000000000 +0200 ++++ curl-7.81.0/lib/http2.c 2022-02-19 20:21:06.381022445 +0200 +@@ -1820,3 +1820,4 @@ + field list. */ +-#define AUTHORITY_DST_IDX 3 ++/* curl-impersonate: Put the ":authority" header in the second place. */ ++#define AUTHORITY_DST_IDX 2 +