summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2022-10-10 15:41:32 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2022-10-19 14:34:23 +0200
commit275b318cd55720b1106965c31e8d60619ae50ec9 (patch)
treef81ed0d0359021ba1981399dcff8aa4143f45a8c /external
parentfa5feda2f891651933703e029dcc757e47a6801f (diff)
statushack
Change-Id: Idbfacc858dd0180c40e86bbd6fc9b0084bd9ed2d
Diffstat (limited to 'external')
-rw-r--r--external/curl/UnpackedTarball_curl.mk1
-rw-r--r--external/curl/statushack.patch.122
2 files changed, 23 insertions, 0 deletions
diff --git a/external/curl/UnpackedTarball_curl.mk b/external/curl/UnpackedTarball_curl.mk
index 76c8cc34de38..fae8a67d2bcd 100644
--- a/external/curl/UnpackedTarball_curl.mk
+++ b/external/curl/UnpackedTarball_curl.mk
@@ -23,6 +23,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,curl,\
external/curl/curl-msvc-disable-protocols.patch.1 \
external/curl/curl-7.26.0_win-proxy.patch \
external/curl/zlib.patch.0 \
+ external/curl/statushack.patch.1 \
))
ifeq ($(SYSTEM_NSS),)
diff --git a/external/curl/statushack.patch.1 b/external/curl/statushack.patch.1
new file mode 100644
index 000000000000..3d55b896310b
--- /dev/null
+++ b/external/curl/statushack.patch.1
@@ -0,0 +1,22 @@
+--- curl/lib/http.c.orig 2022-10-10 14:31:12.867898354 +0200
++++ curl/lib/http.c 2022-10-10 14:31:24.528892930 +0200
+@@ -4213,7 +4213,7 @@
+ &separator,
+ &k->httpcode,
+ &digit4);
+-
++ if(k->httpcode == 401) { k->httpcode = 403; }
+ if(nc == 1 && httpversion_major >= 2 &&
+ 2 == sscanf(HEADER1, " HTTP/%1[23] %d", twoorthree, &k->httpcode)) {
+ conn->httpversion = 0;
+--- curl/lib/http.c.orig 2022-10-10 14:54:55.991225710 +0200
++++ curl/lib/http.c 2022-10-10 14:55:16.836215787 +0200
+@@ -3576,7 +3576,7 @@
+ if(data->set.get_filetime)
+ data->info.filetime = k->timeofdoc;
+ }
+- else if((checkprefix("WWW-Authenticate:", headp) &&
++ else if((0 && checkprefix("WWW-Authenticate:", headp) &&
+ (401 == k->httpcode)) ||
+ (checkprefix("Proxy-authenticate:", headp) &&
+ (407 == k->httpcode))) {