curl is failing with http 2 uploads
In preview
mode, for some reason this is happening:
$ curl -X POST -F "file=@app.zip" -H "commit_message: $CI_COMMIT_MESSAGE" -H "secret: $BRANCH_PREVIEW_KEY" $URL
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
66 74004 0 0 66 49303 0 226k --:--:-- --:--:-- --:--:-- 227k
curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 1
Adding --http1.1
fixes this. But, this worked until today. Totally bizarre.