Skip to content

Commit

Permalink
Added Content-Language header to help with in-browser auto-translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Oct 24, 2018
1 parent 7ccdd43 commit 8b13de2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pttweb.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ func setCommonResponseHeaders(w http.ResponseWriter) {
h := w.Header()
h.Set("Server", "Cryophoenix")
h.Set("Content-Type", "text/html; charset=utf-8")
h.Set("Content-Language", "zh-tw")
}

type ErrorWrapper func(*Context, http.ResponseWriter) error
Expand Down

0 comments on commit 8b13de2

Please sign in to comment.