freezer.ino - JSON Content Type
This commit is contained in:
@@ -81,7 +81,7 @@ void loop() {
|
|||||||
// HTTP headers always start with a response code (e.g. HTTP/1.1 200 OK)
|
// HTTP headers always start with a response code (e.g. HTTP/1.1 200 OK)
|
||||||
// and a content-type so the client knows what's coming, then a blank line:
|
// and a content-type so the client knows what's coming, then a blank line:
|
||||||
client.println("HTTP/1.1 200 OK");
|
client.println("HTTP/1.1 200 OK");
|
||||||
client.println("Content-type: text/html; charset=utf-8");
|
client.println("Content-type: application/json; charset=utf-8");
|
||||||
client.println("Connection: close");
|
client.println("Connection: close");
|
||||||
client.println();
|
client.println();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user