mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2026-01-27 09:12:18 +01:00
Fix header handling versus internal handling of content-type and content-length (Fix #86)
This commit is contained in:
@@ -1192,7 +1192,8 @@ void AsyncWebSocketResponse::_respond(AsyncWebServerRequest* request) {
|
||||
request->client()->close(true);
|
||||
return;
|
||||
}
|
||||
String out(_assembleHead(request->version()));
|
||||
String out;
|
||||
_assembleHead(out, request->version());
|
||||
request->client()->write(out.c_str(), _headLength);
|
||||
_state = RESPONSE_WAIT_ACK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user