Compare commits

...

1 Commits

Author SHA1 Message Date
coah
52d36a1840 match(NHTTP_thread): NHTTPi_RecvProxyConnectHeader init order
Set cursor/index before ended so MWCC emits li r4 then li r5.
2026-10-01 17:08:22 -05:00

View File

@@ -371,9 +371,9 @@ static BOOL NHTTPi_RecvProxyConnectHeader(NHTTPThreadContext* context)
response->httpStatus = NHTTPi_strToInt(header + 9, 3); response->httpStatus = NHTTPi_strToInt(header + 9, 3);
if (NHTTPi_strnicmp(header, "HTTP/", 5) == 0 && header[8] == ' ' if (NHTTPi_strnicmp(header, "HTTP/", 5) == 0 && header[8] == ' '
&& response->httpStatus == 200) accepted = TRUE; && response->httpStatus == 200) accepted = TRUE;
ended = FALSE;
cursor = header; cursor = header;
index = 0; index = 0;
ended = FALSE;
while (index < used) while (index < used)
{ {
if (index > 1 && cursor[-1] == '\r' && *cursor == '\r') ended = TRUE; if (index > 1 && cursor[-1] == '\r' && *cursor == '\r') ended = TRUE;