Permalink
Browse files

Mixed up Accept and Accept-Encoding headers

  • Loading branch information...
1 parent 132298e commit 9f28e629a9fbd95e88bfca9a87d77d6b9eb9b9e1 @CaptainCodeman committed Jul 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client/Http/HttpSocket.cs
@@ -32,7 +32,7 @@ private static HttpWebRequest CreateHttpWebRequest(string url, string httpMethod
httpWebRequest.ContentType = contentType;
httpWebRequest.Method = httpMethod;
- httpWebRequest.Accept = "gzip, deflate"; // use http compression
+ httpWebRequest.Headers[HttpRequestHeader.AcceptEncoding] = "gzip, deflate"; // use http compression
return httpWebRequest;
}

0 comments on commit 9f28e62

Please sign in to comment.