https://bugs.winehq.org/show_bug.cgi?id=42803
Bug ID: 42803 Summary: Large data received on a 401 error causes authentication to fail Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: winhttp Assignee: wine-bugs@winehq.org Reporter: leslie_alistair@hotmail.com Distribution: ---
Returning 10K causes WinHttpSendRequest not to send the Authorization to the server. This is because the data isn't flushed correctly and when WinHttpReceiveResponse is called again it's still reading the data from the first request.
Patch sent to show the issue. https://source.winehq.org/patches/data/132582