This commit is contained in:
Suraj patil 2016-01-09 10:34:07 +05:30
commit 18cb0645e9
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ func ServeStaticFunc(w http.ResponseWriter, r *http.Request) {
contentType = "text/css" contentType = "text/css"
} else if strings.HasSuffix(path, ".png") { } else if strings.HasSuffix(path, ".png") {
contentType = "image/png" contentType = "image/png"
} else if strings.HasSuffix(path, ".png") { } else if strings.HasSuffix(path, ".js") {
contentType = "application/javascript" contentType = "application/javascript"
} else { } else {
contentType = "plain/text" contentType = "plain/text"