提交 c13d11e7 编写于 作者: P pmalhaire 提交者: Me No Dev

fix empty reply from server error (#2903)

The flush causes an empty response a client side.

see https://github.com/espressif/arduino-esp32/issues/2902
上级 b0d8d4dd
......@@ -96,7 +96,6 @@ void loop(void)
req = req.substring(addr_start + 1, addr_end);
Serial.print("Request: ");
Serial.println(req);
client.flush();
String s;
if (req == "/")
......@@ -115,6 +114,7 @@ void loop(void)
}
client.print(s);
client.stop();
Serial.println("Done with client");
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册