Skip to content

Conversation

@Slawomir2
Copy link

This fixes issue #1212

The old code was calling WinHttpQueryHeaders 2nd time but that was sometimes resulting in headers not being found in case the request_handle was reset in the meantime

WinHttpQueryHeaders would then return false and GetLastError() would return ERROR_INVALID_HANDLE.

Eventually application would crash due to uncaught exception thrown by stoi() function when it was passed an empty string (exit code 0xc0000409 which does not necessarily mean stack overflow

@Slawomir2 Slawomir2 closed this Nov 13, 2025
@Slawomir2 Slawomir2 deleted the fix_headers_parsing branch November 13, 2025 09:26
@Slawomir2
Copy link
Author

Code removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant