-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing basic MIME types #214
Conversation
@Ellerbach you better rename filename to extension in GetContentTypeFromFileName(string fileName) |
Guess this supersedes #213 correct? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just please remove the changes unrelated with the PR.
nanoFramework.WebServer/WebServer.cs
Outdated
@@ -468,7 +468,8 @@ public static void SendFileOverHTTP(HttpListenerResponse response, StorageFile s | |||
/// /// <param name="contentType">The type of file, if empty string, then will use auto detection</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"double comment" here
/// /// <param name="contentType">The type of file, if empty string, then will use auto detection</param> | |
/// <param name="contentType">The type of file, if empty string, then will use auto detection</param> |
nanoFramework.WebServer/WebServer.cs
Outdated
@@ -371,7 +371,7 @@ public bool Start() | |||
/// <summary> | |||
/// Restart the server. | |||
/// </summary> | |||
private bool Restart() | |||
public bool Restart() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one and the all the others in the comments are unrelated with the PR: fixing the MIME types. Can you please remove them and submit a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, made this one private again, for the rest of the comments, that was breaking my build somehow (warnings are errors)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. So let's have those fixed first and merge the PR into this one.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Call me picky, but I would rather have had the fixes for the comments in a separate PR... |
Fixing basic MIME types
Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist: