diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-22 06:38:23 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-22 06:38:23 -0700 |
commit | 03e151d216db128cb3b7eab04237b1a583e1c423 (patch) | |
tree | 6a64f5504dc59b2c43f6506bbcf5b5a98db3cdcd /src/DotNetOpenAuth.Core/Messaging/Channel.cs | |
parent | 1b3a8be6ed0baff86c7eb05fd1a7121472f91566 (diff) | |
download | DotNetOpenAuth-03e151d216db128cb3b7eab04237b1a583e1c423.zip DotNetOpenAuth-03e151d216db128cb3b7eab04237b1a583e1c423.tar.gz DotNetOpenAuth-03e151d216db128cb3b7eab04237b1a583e1c423.tar.bz2 |
Fixes another test
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/Channel.cs')
-rw-r--r-- | src/DotNetOpenAuth.Core/Messaging/Channel.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/Channel.cs b/src/DotNetOpenAuth.Core/Messaging/Channel.cs index b087538..b3b605d 100644 --- a/src/DotNetOpenAuth.Core/Messaging/Channel.cs +++ b/src/DotNetOpenAuth.Core/Messaging/Channel.cs @@ -706,7 +706,7 @@ namespace DotNetOpenAuth.Messaging { return responseMessage; } else { - var errorContent = await response.Content.ReadAsStringAsync(); + var errorContent = (response.Content != null) ? await response.Content.ReadAsStringAsync() : null; Logger.Http.ErrorFormat( "Error received in HTTP response: {0} {1}\n{2}", (int)response.StatusCode, response.ReasonPhrase, errorContent); response.EnsureSuccessStatusCode(); // throw so we can wrap it in our catch block. |