Update views.go
This commit is contained in:
parent
18eb139f83
commit
0dc10a1d82
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue