Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c13d11e

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎libraries/ESPmDNS/examples/mDNS_Web_Server/mDNS_Web_Server.ino

Copy file name to clipboardExpand all lines: libraries/ESPmDNS/examples/mDNS_Web_Server/mDNS_Web_Server.ino
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.