diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-16 06:18:32 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-16 06:18:32 -0700 |
commit | 89cc32e99df0fefa153a6450ec333cf5e29b4a82 (patch) | |
tree | b50282a0b4dc0a2d88957b69ab8f7295126cddda /src | |
parent | c925ab3d2c5697c9f5f6e57aa58a042f49cf8ecd (diff) | |
download | DotNetOpenAuth-89cc32e99df0fefa153a6450ec333cf5e29b4a82.zip DotNetOpenAuth-89cc32e99df0fefa153a6450ec333cf5e29b4a82.tar.gz DotNetOpenAuth-89cc32e99df0fefa153a6450ec333cf5e29b4a82.tar.bz2 |
CRLF fix.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth.Test/Mocks/CoordinatingHttpRequestInfo.cs | 6 | ||||
-rw-r--r-- | src/DotNetOpenAuth/Messaging/IncomingWebResponse.cs | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/DotNetOpenAuth.Test/Mocks/CoordinatingHttpRequestInfo.cs b/src/DotNetOpenAuth.Test/Mocks/CoordinatingHttpRequestInfo.cs index be89ebb..2e5a9ce 100644 --- a/src/DotNetOpenAuth.Test/Mocks/CoordinatingHttpRequestInfo.cs +++ b/src/DotNetOpenAuth.Test/Mocks/CoordinatingHttpRequestInfo.cs @@ -39,9 +39,9 @@ namespace DotNetOpenAuth.Test.Mocks { /// </summary> /// <param name="recipient">The recipient.</param> internal CoordinatingHttpRequestInfo(MessageReceivingEndpoint recipient) { - this.recipient = recipient;
- if (recipient != null) {
- this.Url = recipient.Location;
+ this.recipient = recipient; + if (recipient != null) { + this.Url = recipient.Location; } if (recipient == null || (recipient.AllowedMethods & HttpDeliveryMethods.GetRequest) != 0) { diff --git a/src/DotNetOpenAuth/Messaging/IncomingWebResponse.cs b/src/DotNetOpenAuth/Messaging/IncomingWebResponse.cs index b595733..dee81dc 100644 --- a/src/DotNetOpenAuth/Messaging/IncomingWebResponse.cs +++ b/src/DotNetOpenAuth/Messaging/IncomingWebResponse.cs @@ -67,12 +67,12 @@ namespace DotNetOpenAuth.Messaging { ErrorUtilities.VerifyArgumentNotNull(requestUri, "requestUri"); this.RequestUri = requestUri; this.Status = statusCode; - if (!string.IsNullOrEmpty(contentType)) {
- try {
- this.ContentType = new ContentType(contentType);
- } catch (FormatException) {
- Logger.Messaging.ErrorFormat("HTTP response to {0} included an invalid Content-Type header value: {1}", responseUri.AbsoluteUri, contentType);
- }
+ if (!string.IsNullOrEmpty(contentType)) { + try { + this.ContentType = new ContentType(contentType); + } catch (FormatException) { + Logger.Messaging.ErrorFormat("HTTP response to {0} included an invalid Content-Type header value: {1}", responseUri.AbsoluteUri, contentType); + } } this.ContentEncoding = string.IsNullOrEmpty(contentEncoding) ? DefaultContentEncoding : contentEncoding; this.Headers = headers; |