freezer.ino - JSON Content Type

This commit is contained in:
2026-07-15 18:35:50 +00:00
parent 8402d7832d
commit d5046b4ba9
+1 -1
View File
@@ -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();