From 131a60349c1f6c22d77618c5edb76274a472a0ab Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sat, 10 Sep 2022 15:07:13 -0600 Subject: [PATCH] Debug bad http response to 409 --- back/lib/http_res | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/lib/http_res b/back/lib/http_res index 04470e4..25c87ce 100755 --- a/back/lib/http_res +++ b/back/lib/http_res @@ -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=''