Skip to content

Commit

Permalink
HttpClient should not create a buffer for response contents on HeadOb…
Browse files Browse the repository at this point in the history
…ject method
  • Loading branch information
Cristi Pufu committed Jun 6, 2017
1 parent 33c7cfa commit 78b1841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SwiftClient/SwiftClientObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public Task<SwiftResponse> HeadObject(string containerId, string objectId, Dicti
try
{
using (var response = await _client.SendAsync(request).ConfigureAwait(false))
using (var response = await _client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false))
{
return GetResponse<SwiftResponse>(response);
}
Expand Down

0 comments on commit 78b1841

Please sign in to comment.