Skip to content

Commit

Permalink
Merge pull request #27 from minglei84/master
Browse files Browse the repository at this point in the history
Set "AutomaticDecompression"  to support SFX
  • Loading branch information
hhariri committed Feb 6, 2015
2 parents 78ac521 + e3dae9a commit 12238ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EasyHttp/Http/HttpRequest.cs
Expand Up @@ -133,6 +133,7 @@ void SetupHeader()
httpWebRequest.Referer = Referer;
httpWebRequest.CachePolicy = _cachePolicy;
httpWebRequest.KeepAlive = KeepAlive;
httpWebRequest.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip | DecompressionMethods.None;

ServicePointManager.Expect100Continue = Expect;
ServicePointManager.ServerCertificateValidationCallback = AcceptAllCertifications;
Expand Down

0 comments on commit 12238ce

Please sign in to comment.