Fix vet and linting errors

This commit is contained in:
Remco
2017-03-22 21:09:40 +01:00
parent 8277e88bbd
commit 01c2d426ed
3 changed files with 39 additions and 29 deletions

View File

@ -169,7 +169,7 @@ func (s *Server) previewHandler(w http.ResponseWriter, r *http.Request) {
func (s *Server) viewHandler(w http.ResponseWriter, r *http.Request) {
// vars := mux.Vars(r)
if acceptsHtml(r.Header) {
if acceptsHTML(r.Header) {
if err := html_templates.ExecuteTemplate(w, "index.html", nil); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return