From b51e1c0e0f1dc42620765dd672360998a3238e1f Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Wed, 8 Jan 2025 23:56:26 +0100 Subject: 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 --- upload-artifact | 1 + 1 file changed, 1 insertion(+) 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")" \ -- cgit v1.2.3