summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/Messaging/Channel.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/Messaging/Channel.cs b/src/DotNetOpenAuth/Messaging/Channel.cs
index 1bb4795..ef82e11 100644
--- a/src/DotNetOpenAuth/Messaging/Channel.cs
+++ b/src/DotNetOpenAuth/Messaging/Channel.cs
@@ -716,7 +716,12 @@ namespace DotNetOpenAuth.Messaging {
httpRequest.CachePolicy = this.CachePolicy;
httpRequest.Method = "POST";
httpRequest.ContentType = "application/x-www-form-urlencoded";
- httpRequest.Headers[HttpRequestHeader.ContentEncoding] = PostEntityEncoding.WebName;
+
+ // Setting the content-encoding to "utf-8" causes Google to reply
+ // with a 415 UnsupportedMediaType. But adding it doesn't buy us
+ // anything specific, so it's disable it until we know how to get it right.
+ ////httpRequest.Headers[HttpRequestHeader.ContentEncoding] = PostEntityEncoding.WebName;
+
string requestBody = MessagingUtilities.CreateQueryString(fields);
byte[] requestBytes = PostEntityEncoding.GetBytes(requestBody);
httpRequest.ContentLength = requestBytes.Length;