Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit 3c20e0a

Browse files
pmalhaireme-no-dev
authored andcommitted
fix empty reply from server error (#2903)
The flush causes an empty response a client side. see espressif/arduino-esp32#2902
1 parent 3fc58d6 commit 3c20e0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)