Debug bad http response to 409

master
Keith Irwin 2022-09-10 15:07:13 -06:00
parent 4025ff9383
commit 131a60349c
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,9 @@
# DESCRIPTION: Formats an http response from arguments
# USAGE: [printf "message" |] res [200] [text/plain]
body="$(cat)"
printf "${*}\n${body}" >>"${LOGFILE}"
# Parse status
status=''
case "${1}" in
@ -15,7 +18,6 @@ case "${1}" in
esac
# Parse inputs
body="$(cat)"
content_type=''
if [ "${2}" == '' ] && [ "${body}" == '' ]
then content_type=''