8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a798a5 commit 3bdae3cCopy full SHA for 3bdae3c
src/Dotnet.Script.Core/ScriptDownloader.cs
@@ -1,5 +1,6 @@
1
using System;
2
using System.IO;
3
+using System.Net;
4
using System.Net.Http;
5
using System.Net.Mime;
6
using System.Threading.Tasks;
@@ -11,7 +12,12 @@ public class ScriptDownloader
11
12
public async Task<string> Download(string uri)
13
{
14
const string plainTextMediaType = "text/plain";
- using (HttpClient client = new HttpClient())
15
+ using (HttpClient client = new HttpClient(new HttpClientHandler
16
+ {
17
+ // Avoid Deflate due to bugs. For more info, see:
18
+ // https://github.com/weblinq/WebLinq/issues/132
19
+ AutomaticDecompression = DecompressionMethods.GZip
20
+ }))
21
22
using (HttpResponseMessage response = await client.GetAsync(uri))
23
0 commit comments