Update views.go

This commit is contained in:
Suraj Patil 2016-01-07 20:25:56 +05:30
parent 18eb139f83
commit 0dc10a1d82
1 changed files with 1 additions and 1 deletions

View File

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