summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Messaging/Channel.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-22 21:57:04 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-22 21:57:04 -0700
commit5be8a1353fbf22a0bf9a3c414b6166c42e1c844d (patch)
treefb241862f39d5c6d25bc6055d1f35499148f727b /src/DotNetOpenAuth.Core/Messaging/Channel.cs
parentc0ecea5ad16ce657baf2876563dabf6109855254 (diff)
downloadDotNetOpenAuth-5be8a1353fbf22a0bf9a3c414b6166c42e1c844d.zip
DotNetOpenAuth-5be8a1353fbf22a0bf9a3c414b6166c42e1c844d.tar.gz
DotNetOpenAuth-5be8a1353fbf22a0bf9a3c414b6166c42e1c844d.tar.bz2
Fixes a few more tests
Diffstat (limited to 'src/DotNetOpenAuth.Core/Messaging/Channel.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Messaging/Channel.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Core/Messaging/Channel.cs b/src/DotNetOpenAuth.Core/Messaging/Channel.cs
index 25fee17..25ad84b 100644
--- a/src/DotNetOpenAuth.Core/Messaging/Channel.cs
+++ b/src/DotNetOpenAuth.Core/Messaging/Channel.cs
@@ -869,7 +869,7 @@ namespace DotNetOpenAuth.Messaging {
}
Logger.Http.DebugFormat("Redirecting to {0}", builder.Uri.AbsoluteUri);
- HttpResponseMessage response = new HttpResponseMessage {
+ HttpResponseMessage response = new HttpResponseMessageWithOriginal(message) {
StatusCode = HttpStatusCode.Redirect,
Content = new StringContent(string.Format(CultureInfo.InvariantCulture, RedirectResponseBodyFormat, builder.Uri.AbsoluteUri)),
};
@@ -905,7 +905,7 @@ namespace DotNetOpenAuth.Messaging {
HttpUtility.HtmlEncode(message.Recipient.AbsoluteUri),
hiddenFields);
bodyWriter.Flush();
- HttpResponseMessage response = new HttpResponseMessage {
+ HttpResponseMessage response = new HttpResponseMessageWithOriginal(message) {
StatusCode = HttpStatusCode.OK,
Content = new StringContent(bodyWriter.ToString()),
};