Skip to content

Commit

Permalink
Need to explicitly set content type to text/html for Robeaux main page
Browse files Browse the repository at this point in the history
  • Loading branch information
deadprogram committed Feb 18, 2016
1 parent 34e5f02 commit b61d713
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ func (a *API) robeaux(res http.ResponseWriter, req *http.Request) {
res.Header().Set("Content-Type", "text/javascript; charset=utf-8")
} else if t[len(t)-1] == "css" {
res.Header().Set("Content-Type", "text/css; charset=utf-8")
} else if t[len(t)-1] == "html" {
res.Header().Set("Content-Type", "text/html; charset=utf-8")
}
res.Write(buf)
}
Expand Down

0 comments on commit b61d713

Please sign in to comment.