Debug bad http response to 409
parent
4025ff9383
commit
131a60349c
|
@ -3,6 +3,9 @@
|
||||||
# DESCRIPTION: Formats an http response from arguments
|
# DESCRIPTION: Formats an http response from arguments
|
||||||
# USAGE: [printf "message" |] res [200] [text/plain]
|
# USAGE: [printf "message" |] res [200] [text/plain]
|
||||||
|
|
||||||
|
body="$(cat)"
|
||||||
|
printf "${*}\n${body}" >>"${LOGFILE}"
|
||||||
|
|
||||||
# Parse status
|
# Parse status
|
||||||
status=''
|
status=''
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
|
@ -15,7 +18,6 @@ case "${1}" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Parse inputs
|
# Parse inputs
|
||||||
body="$(cat)"
|
|
||||||
content_type=''
|
content_type=''
|
||||||
if [ "${2}" == '' ] && [ "${body}" == '' ]
|
if [ "${2}" == '' ] && [ "${body}" == '' ]
|
||||||
then content_type=''
|
then content_type=''
|
||||||
|
|
Loading…
Reference in New Issue