From: Lukas Schauer Date: Fri, 9 Mar 2018 11:25:37 +0000 (+0100) Subject: include content-type in post requests (fixes #491) X-Git-Tag: v0.6.0~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=6e802ddc1949f3abe5283abfc5a07822ebc94ff9;p=thirdparty%2Fdehydrated.git include content-type in post requests (fixes #491) --- diff --git a/dehydrated b/dehydrated index 362c426..5e5d162 100755 --- a/dehydrated +++ b/dehydrated @@ -506,7 +506,7 @@ http_request() { statuscode="$(curl ${ip_version:-} ${CURL_OPTS} -A "dehydr4ted/${VERSION} curl/${CURL_VERSION}" -L -s -w "%{http_code}" -o "${tempcont}" -D "${tempheaders}" "${2}")" curlret="${?}" elif [[ "${1}" = "post" ]]; then - statuscode="$(curl ${ip_version:-} ${CURL_OPTS} -A "dehydr4ted/${VERSION} curl/${CURL_VERSION}" -s -w "%{http_code}" -o "${tempcont}" "${2}" -D "${tempheaders}" -d "${3}")" + statuscode="$(curl ${ip_version:-} ${CURL_OPTS} -A "dehydr4ted/${VERSION} curl/${CURL_VERSION}" -s -w "%{http_code}" -o "${tempcont}" "${2}" -D "${tempheaders}" -H 'Content-Type: application/jose+json' -d "${3}")" curlret="${?}" else set -e