Permalink
Browse files

Fixes two unit tests that fail in Release configurations.

  • Loading branch information...
1 parent c825738 commit c556ab1644fc8fd16fc3ab3c36ecbeff6c989ceb @AArnott AArnott committed Mar 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/DotNetOpenAuth.OpenId/OpenId/ChannelElements/OpenIdChannel.cs
@@ -187,7 +187,7 @@ protected OpenIdChannel(IMessageFactory messageTypeProvider, IChannelBindingElem
var fields = messageAccessor.Serialize();
byte[] keyValueEncoding = KeyValueFormEncoding.GetBytes(fields);
- var preparedResponse = new HttpResponseMessage();
+ var preparedResponse = new HttpResponseMessageWithOriginal(response);
ApplyMessageTemplate(response, preparedResponse);
var content = new StreamContent(new MemoryStream(keyValueEncoding));
content.Headers.ContentType = new MediaTypeHeaderValue(KeyValueFormContentType);

0 comments on commit c556ab1

Please sign in to comment.