Skip to content

Commit

Permalink
Regenerating samples with gulp regenerate:expected:samples
Browse files Browse the repository at this point in the history
  • Loading branch information
vishrutshah committed Jun 24, 2016
1 parent cd769c3 commit 4d24335
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,12 @@ public async Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string res
if ((int)_statusCode != 200 && (int)_statusCode != 204)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
if (_httpResponse.Content != null) {
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
}
else {
_responseContent = string.Empty;
}
ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
if (_httpResponse.Headers.Contains("x-ms-request-id"))
Expand Down
Loading

0 comments on commit 4d24335

Please sign in to comment.