Skip to content

Commit 731a0a8

Browse files
itheweiCopilot
andauthored
Header too large for reserved space: send header first, then continue with file body
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4c1d30c commit 731a0a8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

http/server/HttpHandler.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,9 @@ int HttpHandler::GetSendData(char** data, size_t* len) {
807807
state = SEND_DONE;
808808
return *len;
809809
}
810-
// Header too large for reserved space — fall through to normal path
810+
// Header too large for reserved space: send header first, then continue with file body.
811+
state = SEND_BODY;
812+
goto return_header;
811813
}
812814
// API service
813815
content_length = pResp->ContentLength();

0 commit comments

Comments
 (0)