Browse Source

Check curl version if it supports the --http1.1 flag

Co-authored-by: Robert Eden <rmeden@yahoo.com>
pull/426/head
Emily Karisch 6 years ago
parent
commit
3f0b749e2b
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      getssl

+ 8
- 1
getssl View File

@ -1136,7 +1136,14 @@ send_signed_request() { # Sends a request to the ACME server, signed with your p
CURL_HEADER="$TEMP_DIR/curl.header"
dp="$TEMP_DIR/curl.dump"
CURL="curl --http1.1 --silent --dump-header $CURL_HEADER "
CURL="curl "
if [[ "$($CURL -V | head -1 | cut -d' ' -f2 )" > "7.33" ]]; then
CURL="$CURL --http1.1 "
fi
CURL="$CURL --silent --dump-header $CURL_HEADER "
if [[ ${_USE_DEBUG} -eq 1 ]]; then
CURL="$CURL --trace-ascii $dp "
fi


Loading…
Cancel
Save