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 b3975b7 commit dae0f66Copy full SHA for dae0f66
main.go
@@ -169,6 +169,11 @@ func setContentType(r *http.Request, resp *http.Response) {
169
ext := strings.ToLower(filepath.Ext(fname))
170
mime := ""
171
172
+ if currentMime == "text/html; charset=utf-8" {
173
+ currentMime = "text/html"
174
+ resp.Header.Set("Content-Type", currentMime)
175
+ }
176
+
177
if (ext == ".php" || rext == ".php") && currentMime != "" {
178
// Keep content types set by php script if available
179
return
0 commit comments