Permalink
Browse files

Merge branch 'master' of github.com:bradfitz/batt

  • Loading branch information...
2 parents c5b0f76 + bf30085 commit d6d76477063f1d5c04a47646f11fc8e46b596391 @adg adg committed Apr 25, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 battd/battd.go
View
6 battd/battd.go
@@ -2,8 +2,8 @@ package main
import (
"bytes"
- "crypto/rand"
"crypto/hmac"
+ "crypto/rand"
"crypto/sha1"
"errors"
"flag"
@@ -104,6 +104,10 @@ type homeTemplateData struct {
}
func home(w http.ResponseWriter, r *http.Request) {
+ if r.Method == "HEAD" {
+ w.Header().Set("Content-Type", "text/html; charset=utf-8")
+ return
+ }
err := homeTemplate.Execute(w, homeTemplateData{
Platforms: platforms(),
})

0 comments on commit d6d7647

Please sign in to comment.