mirror of
https://github.com/thewhitetulip/Tasks.git
synced 2025-05-02 22:17:06 +08:00
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…
x
Reference in New Issue
Block a user