Skip to content

Commit 288c698

Browse files
authored
Force server connection close after response
Prevents the error 'Call taking forever'
1 parent 98e1375 commit 288c698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ESPAsyncHTTPClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void AsyncHTTPClient::initialize(String url) {
7070
#endif
7171

7272
DEBUG(initialized);
73-
request = "GET " + uri + " HTTP/1.1\r\nHost: " + host + "\r\n\r\n";
73+
request = "GET " + uri + " HTTP/1.1\r\nHost: " + host + "\r\nConnection: close\r\n\r\n";
7474

7575
DEBUG(request);
7676
initialized = true;

0 commit comments

Comments
 (0)