Skip to content

Commit

Permalink
Merge pull request #428 from pixelart/bugfix/agreement-auto-approve
Browse files Browse the repository at this point in the history
Case insensitive processing of agreement url because of HTTP/2
  • Loading branch information
QuingKhaos authored Oct 5, 2019
2 parents 867ae36 + 70f5443 commit 8cbf31b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions getssl
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,11 @@
# 2017-01-30 issue #243 additional compatibility with bash 3.0 (2.09)
# 2017-02-18 add OCSP Must-Staple to the domain csr generation (2.10)
# 2019-09-30 issue #423 Use HTTP 1.1 as workaround atm (2.11)
# 2019-10-02 issue #425 Case insensitive processing of agreement url because of HTTP/2 (2.12)
# ----------------------------------------------------------------------------------------

PROGNAME=${0##*/}
VERSION="2.11"
VERSION="2.12"

# defaults
ACCOUNT_KEY_LENGTH=4096
Expand Down Expand Up @@ -1483,7 +1484,7 @@ if [[ $_REVOKE -eq 1 ]]; then
fi

# get latest agreement from CA (as default)
AGREEMENT=$(curl -I "${CA}/terms" 2>/dev/null | awk '$1 ~ "Location:" {print $2}'|tr -d '\r')
AGREEMENT=$(curl -I "${CA}/terms" 2>/dev/null | awk 'tolower($1) ~ "location:" {print $2}'|tr -d '\r')

# if nothing in command line, print help and exit.
if [[ -z "$DOMAIN" ]] && [[ ${_CHECK_ALL} -ne 1 ]]; then
Expand Down

0 comments on commit 8cbf31b

Please sign in to comment.