Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
get connection from pool to send digest auth response (#26733)
Browse files Browse the repository at this point in the history
* get connection from pool to send digest auth response
* fix incorrect comment.
* s/TBD/TODO/
  • Loading branch information
wfurt authored Feb 2, 2018
1 parent 524f01c commit c727d12
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ private async Task<HttpResponseMessage> SendWithProxyAsync(

if (credential != null)
{
// TODO #23156: Drain response before disposing.
response.Dispose();

request.Headers.ProxyAuthorization = new AuthenticationHeaderValue(AuthenticationHelper.Basic,
Expand All @@ -111,8 +112,9 @@ private async Task<HttpResponseMessage> SendWithProxyAsync(

if (await AuthenticationHelper.TrySetDigestAuthToken(request, credential, digestResponse, HttpKnownHeaderNames.ProxyAuthorization).ConfigureAwait(false))
{
// TODO #23156: Drain response before disposing.
response.Dispose();
response = await _innerHandler.SendAsync(request, cancellationToken).ConfigureAwait(false);
response = await GetConnectionAndSendAsync(request, proxyUri, cancellationToken).ConfigureAwait(false);

// Retry in case of nonce timeout in server.
if (response.StatusCode == HttpStatusCode.ProxyAuthenticationRequired)
Expand Down

0 comments on commit c727d12

Please sign in to comment.