Skip to content

Commit 7013e70

Browse files
authored
fix empty reply from server error
The flush causes an empty response a client side. see espressif#2902
1 parent 7d78247 commit 7013e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESPmDNS/examples/mDNS_Web_Server/mDNS_Web_Server.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ void loop(void)
9696
req = req.substring(addr_start + 1, addr_end);
9797
Serial.print("Request: ");
9898
Serial.println(req);
99-
client.flush();
10099

101100
String s;
102101
if (req == "/")
@@ -115,6 +114,7 @@ void loop(void)
115114
}
116115
client.print(s);
117116

117+
client.stop();
118118
Serial.println("Done with client");
119119
}
120120

0 commit comments

Comments
 (0)