diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2025-01-08 23:56:26 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2025-01-12 01:53:16 +0100 |
| commit | b51e1c0e0f1dc42620765dd672360998a3238e1f (patch) | |
| tree | 3069ba15eed42d997ce90c2faf532219b10685f0 | |
| parent | a481304b911b3ceea91bf11d6ca4f072fa6e5fa2 (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-x | upload-artifact | 1 |
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")" \ |
