Skip to content

Commit cafea9f

Browse files
committed
Support for bearer token auth, in addition to basic auth
1 parent 1eb4fa0 commit cafea9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ if [ -n "$curl_opts" ]; then
211211
fi
212212

213213
if [ -n "$webhook_auth" ] && [ "$auth_type" == "bearer" ]; then
214-
options="-H 'Authorization: Bearer $webhook_auth' \\"
214+
options="$options -H 'Authorization: Bearer $webhook_auth'"
215215
fi
216216

217217
if [ -n "$webhook_auth" ] && [ "$auth_type" == "header" ]; then
@@ -223,9 +223,9 @@ if [ -n "$webhook_auth" ] && [ "$auth_type" == "header" ]; then
223223
# and consider a potential fail-safe for user error, and resort to setting the
224224
# entire value as an Authorization token - the attempt at trying to resolve what
225225
# the author meant may or may not be a better approach than just letting it error?
226-
options="-H 'Authorization: $webhook_auth' \\"
226+
options="$options -H 'Authorization: $webhook_auth'"
227227
else
228-
options="-H '$header_name: $header_value' \\"
228+
options="$options -H '$header_name: $header_value'"
229229
fi
230230
fi
231231

0 commit comments

Comments
 (0)