Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0899829

Browse filesBrowse files
author
Andrew Jordan
committed
Support remote scripts with empty/null Content Type
1 parent 120ff8e commit 0899829
Copy full SHA for 0899829

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Dotnet.Script.Core/ScriptDownloader.cs

Copy file name to clipboard
100644100755
Expand all lines: src/Dotnet.Script.Core/ScriptDownloader.cs
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.