Skip to content

Commit c13d11e

Browse files
pmalhaireme-no-dev
authored andcommitted
fix empty reply from server error (#2903)
The flush causes an empty response a client side. see #2902
1 parent b0d8d4d commit c13d11e

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

+1-1
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)