We don't want that CR in response

This commit is contained in:
kexkey
2018-11-04 15:28:51 -05:00
parent 43eb8d6650
commit f49239737a
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ response_to_client()
([ -z "${returncode}" ] || [ "${returncode}" -eq "0" ]) && echo -ne "HTTP/1.1 200 OK\r\n"
[ -n "${returncode}" ] && [ "${returncode}" -ne "0" ] && echo -ne "HTTP/1.1 400 Bad Request\r\n"
echo -e "Content-Type: application/json\r\nContent-Length: ${#response}\r\n\r\n${response}"
echo -en "Content-Type: application/json\r\nContent-Length: ${#response}\r\n\r\n${response}"
# Small delay needed for the data to be processed correctly by peer
sleep 0.2s