File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3
3
- The ` text ` field of attachments now interpolates environment
4
4
variables from the container environment (i.e. BUILD_ * et al).
5
5
Fixes #25
6
+
7
+ - Drop ` -X POST ` curl flags to silence warnings from curl.
8
+ Fixes #26
Original file line number Diff line number Diff line change @@ -128,13 +128,13 @@ EOF
128
128
elif [[ "$silent " == "true" ]]
129
129
then
130
130
echo "Using silent output"
131
- curl -s -X POST - -data-urlencode "payload=${compact_body} " ${CURL_OPTION} "${webhook_url} "
131
+ curl -s --data-urlencode "payload=${compact_body} " ${CURL_OPTION} "${webhook_url} "
132
132
elif [[ ${redact_hook} == "true" ]]
133
133
then
134
134
url_path="$(echo ${webhook_url} | sed - e "s/ https\{0 , 1 \}: \/ \/ [^\/ ]* \(\/ [^?& #]* \).*/ \1 / ")"
135
- curl -v -X POST - -data-urlencode "payload=${compact_body} " ${CURL_OPTION} "${webhook_url} " 2 >& 1 | sed - e "s#${url_path} #*** WEBHOOK URL REDACTED*** #g"
135
+ curl -v --data-urlencode "payload=${compact_body} " ${CURL_OPTION} "${webhook_url} " 2 >& 1 | sed - e "s#${url_path} #*** WEBHOOK URL REDACTED*** #g"
136
136
else
137
- curl -v -X POST - -data-urlencode "payload=${compact_body} " ${CURL_OPTION} "${webhook_url} " | sed - e "s#${url_path} #*** WEBHOOK URL REDACTED*** #g"
137
+ curl -v --data-urlencode "payload=${compact_body} " ${CURL_OPTION} "${webhook_url} " | sed - e "s#${url_path} #*** WEBHOOK URL REDACTED*** #g"
138
138
fi
139
139
else
140
140
text="$(echo "" | jq -R -s .)"
You can’t perform that action at this time.
0 commit comments