samuong / alpaca

A local HTTP proxy for command-line tools. Supports PAC scripts and NTLM authentication.
Apache License 2.0
184 stars 31 forks source link

Update transport.go , to fix ntlm 407 challenge httpresponse containing extra httpbody issue #119

Closed ziyiwang closed 1 month ago

ziyiwang commented 1 month ago

to fix ntlm 407 challenge httpresponse containing extra httpbody issue issue #118

extra httpBody in httpResponse with 407 , is not read and stuck in stream, the body needs to be read and discarded before next HTTP response comes in (HTTP 200) , otherwise the stuck body in stream will cause HTTP response error