Skip to content

Commit

Permalink
Gametime handler: set HTTP Content-Type to text/plain.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmptbl committed Sep 6, 2012
1 parent f71f091 commit 229393e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gametime/gametime.go
Expand Up @@ -48,6 +48,7 @@ func (s FastCGIServer) ServeHTTP(w http.ResponseWriter, req *http.Request) {
now := time.Now()

w.Header().Set("Content-Length", "1")
w.Header().Set("Content-Type", "text/plain; charset=utf-8")

if isGametime(now) {
w.Write([]byte("1"))
Expand Down

0 comments on commit 229393e

Please sign in to comment.