Skip to content

Commit 8594f3e

Browse files
authored
Merge pull request #587 from AndrewMJordan/bugfix/content-type
Support remote scripts with empty/null Content Type
2 parents 120ff8e + 0899829 commit 8594f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dotnet.Script.Core/ScriptDownloader.cs

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public async Task<string> Download(string uri)
1818

1919
using (HttpContent content = response.Content)
2020
{
21-
var mediaType = content.Headers.ContentType.MediaType?.ToLowerInvariant().Trim();
21+
var mediaType = content.Headers.ContentType?.MediaType?.ToLowerInvariant().Trim();
2222
switch (mediaType)
2323
{
2424
case null:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy