This commit is contained in:
wighawag 2016-05-10 06:07:50 +01:00
parent ce09f5593d
commit 016d464043
2 changed files with 6 additions and 6 deletions

View file

@ -107,7 +107,7 @@ func (t *httpReadWriteNopCloser) Close() error {
func newJSONHTTPHandler(srv *Server) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/authorization.html"{
if r.URL.Path == "/authorization.html" {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
if _, err := w.Write([]byte(embed.AuthorizationHTML)); err != nil {
fmt.Fprintf(w, "%s", err)