mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Fixed up the way REST / HTTP1.1 messages are formatted when passed
back to the client. Fixes an issue with bad header formatting, and changed JSON to be more human-readable. Also, changed the test script to only display the verbose error output if it fails, otherwise it'll just return the JSON response
This commit is contained in:
@@ -19,5 +19,8 @@ echo ""
|
||||
. ./utils/resty -W "http://127.0.0.1:12151" -H "Accept: application/json" -H "Content-Type: application/json" -u ${fuser}:${fpass}
|
||||
|
||||
# Check the reply of this REST query
|
||||
POST /sysadm/lifepreserver '{ "action":"listcron" }' -v
|
||||
|
||||
PUT /sysadm/lifepreserver '{ "action":"listcron" }' -v 2>/tmp/.rstErr
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Failed.. Error output:"
|
||||
cat /tmp/.rstErr
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user