From b73cc35749ef0b9893f28b50b830a66adf9813fc Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Fri, 26 Aug 2016 07:31:09 -0700 Subject: [PATCH] fixed http response charset --- controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/controller.go b/controller/controller.go index f60602fe..a7ddef58 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -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