From e8d479012ddeb8695e00b28ad71b3f08a3a461d1 Mon Sep 17 00:00:00 2001 From: kexkey Date: Wed, 19 Jun 2019 10:56:11 -0400 Subject: [PATCH] Sometimes servers being called back use a self-signed tls cert --- notifier_docker/script/web.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notifier_docker/script/web.sh b/notifier_docker/script/web.sh index 9f4158a..4e07f35 100644 --- a/notifier_docker/script/web.sh +++ b/notifier_docker/script/web.sh @@ -47,12 +47,12 @@ curl_it() { local rnd=$(dd if=/dev/urandom bs=5 count=1 | xxd -pc 5) if [ -n "${data}" ]; then - trace "[curl_it] curl -o webresponse-${rnd} -m 20 -w \"%{http_code}\" -H \"Content-Type: application/json\" -H \"X-Forwarded-Proto: https\" -d \"${data}\" ${url}" - rc=$(curl -o webresponse-${rnd} -m 20 -w "%{http_code}" -H "Content-Type: application/json" -H "X-Forwarded-Proto: https" -d "${data}" ${url}) + trace "[curl_it] curl -o webresponse-${rnd} -m 20 -w \"%{http_code}\" -H \"Content-Type: application/json\" -H \"X-Forwarded-Proto: https\" -d \"${data}\" -k ${url}" + rc=$(curl -o webresponse-${rnd} -m 20 -w "%{http_code}" -H "Content-Type: application/json" -H "X-Forwarded-Proto: https" -d "${data}" -k ${url}) returncode=$? else - trace "[curl_it] curl -o webresponse-$$ -m 20 -w \"%{http_code}\" ${url}" - rc=$(curl -o webresponse-${rnd} -m 20 -w "%{http_code}" ${url}) + trace "[curl_it] curl -o webresponse-$$ -m 20 -w \"%{http_code}\" -k ${url}" + rc=$(curl -o webresponse-${rnd} -m 20 -w "%{http_code}" -k ${url}) returncode=$? fi trace "[curl_it] HTTP return code=${rc}"