From 0a728ea8c6fd164e151ea86c68660110de2a1c49 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: May 30 2018 23:25:21 +0000 Subject: Pass --http1.1 to curl to work around bugs. This should be done in a better way. curl 7.60 won't have this bug, and 7.29 doesn't have http/2 support so it doesn't have the bug either. Should figure out which versions are affected and just pass the flag for them. --- diff --git a/quick-fedora-mirror b/quick-fedora-mirror index a6a0dcc..e161ec1 100755 --- a/quick-fedora-mirror +++ b/quick-fedora-mirror @@ -792,7 +792,10 @@ checkin_upload_payload () { logit M "Making xmlrpc call for $module" curlopts=(--silent) + curl --help | grep -q http1\.1 + (( ? == 0 )) && curlopts+=(--http1.1) (( VERBOSE >= 4 )) && curlopts=(--verbose) + db3 "$CURL $curlopts -H \"Expect:\" -H \"Content-Type: text/xml\" --data @$mx $MIRRORMANAGER" $CURL $curlopts -H "Expect:" -H "Content-Type: text/xml" --data @$mx $MIRRORMANAGER > curl.out curlret=$? if [[ $curlret -ne 0 ]]; then