aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2025-01-08 23:56:26 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2025-01-12 01:53:16 +0100
commitb51e1c0e0f1dc42620765dd672360998a3238e1f (patch)
tree3069ba15eed42d997ce90c2faf532219b10685f0
parenta481304b911b3ceea91bf11d6ca4f072fa6e5fa2 (diff)
upload-artifact: Force curl(1) not to send "Expect" header
Under some circumstances, curl(1) sends 100-continue to the HTTP server. [1] While this is handled correctly by slcl, when used together with Apache as a reverse proxy, for some unknown reason the Content-Length is not sent to slcl by Apache, and therefore returns a 502 Proxy Error. Setting the proxy-sendcl environment variable [2] to Apache did not help, either. [1]: https://gms.tf/when-curl-sends-100-continue.html [2]: https://httpd.apache.org/docs/current/mod/mod_proxy.html#request-bodies
-rwxr-xr-xupload-artifact1
1 files changed, 1 insertions, 0 deletions
diff --git a/upload-artifact b/upload-artifact
index 533a55e..2dfb989 100755
--- a/upload-artifact
+++ b/upload-artifact
@@ -36,6 +36,7 @@ upload()
curl -X POST \
--fail-with-body \
+ -H 'Expect:' \
-b "$cookiejar" \
-F dir="/" \
-F "file=@$f;filename=$(basename -- "$f")" \