fixed http response charset

This commit is contained in:
Josh Baker 2016-08-26 07:31:09 -07:00
parent a2fa6444b1
commit b73cc35749
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ func (c *Controller) handleInputCommand(conn *server.Conn, msg *server.Message,
_, err := fmt.Fprintf(w, "HTTP/1.1 200 OK\r\n"+
"Connection: close\r\n"+
"Content-Length: %d\r\n"+
"Content-Type: application/json charset=utf-8\r\n"+
"Content-Type: application/json; charset=utf-8\r\n"+
"\r\n", len(res)+2)
if err != nil {
return err