Debug bad http response to 409
parent
4025ff9383
commit
131a60349c
|
@ -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=''
|
||||
|
|
Loading…
Reference in New Issue