]> granicus.if.org Git - curl/commit
http_ntlm_wb: Handle auth for only a single request
authorSteve Holme <steve_holme@hotmail.com>
Sat, 18 May 2019 16:30:16 +0000 (17:30 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 18 May 2019 18:01:11 +0000 (19:01 +0100)
commit7ca7f82ba7c936cc01651e28b2ad92400ad4f7cc
tree2f941da7b412ec484bf285a57f153dad5176c58c
parent2697d633630477de3b0d9ead2dea599f3b79af75
http_ntlm_wb: Handle auth for only a single request

Currently when the server responds with 401 on NTLM authenticated
connection (re-used) we consider it to have failed.  However this is
legitimate and may happen when for example IIS is set configured to
'authPersistSingleRequest' or when the request goes thru a proxy (with
'via' header).

Implemented by imploying an additional state once a connection is
re-used to indicate that if we receive 401 we need to restart
authentication.

Missed in fe6049f0.
lib/curl_ntlm_wb.c