Commit 0a728ea Pass --http1.1 to curl to work around bugs.

1 file Authored and Committed by tibbs 3 months ago
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.

    
 1 @@ -792,7 +792,10 @@
 2   
 3       logit M "Making xmlrpc call for $module"
 4       curlopts=(--silent)
 5 +     curl --help | grep -q http1\.1
 6 +     (( ? == 0 )) && curlopts+=(--http1.1)
 7       (( VERBOSE >= 4 )) && curlopts=(--verbose)
 8 +     db3 "$CURL $curlopts -H \"Expect:\" -H \"Content-Type: text/xml\" --data @$mx $MIRRORMANAGER"
 9       $CURL $curlopts -H "Expect:" -H "Content-Type: text/xml" --data @$mx $MIRRORMANAGER > curl.out
10       curlret=$?
11       if [[ $curlret -ne 0 ]]; then