Content-Type - Headers are case-insensitive, but capital to each word is 'preferred'

This commit is contained in:
MDW 2023-06-05 15:22:43 +02:00
parent 20efdca243
commit f940553f45

View file

@ -47,6 +47,6 @@ while true; do
json=$(bashio::var.json "${peers[@]}")
fi
echo -e "HTTP/1.1 200 OK\r\nContent-type: application/json\r\n\r\n${json}" \
echo -e "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\n\r\n${json}" \
| nc -l -p 80 > /dev/null
done