1fedaf21 by astaxie

jsonp set header to javascript

1 parent 0b74db64
...@@ -255,7 +255,7 @@ func (c *Controller) ServeJsonp() { ...@@ -255,7 +255,7 @@ func (c *Controller) ServeJsonp() {
255 callback_content.WriteString("(") 255 callback_content.WriteString("(")
256 callback_content.Write(content) 256 callback_content.Write(content)
257 callback_content.WriteString(");\r\n") 257 callback_content.WriteString(");\r\n")
258 c.Ctx.ResponseWriter.Header().Set("Content-Type", "application/json;charset=UTF-8") 258 c.Ctx.ResponseWriter.Header().Set("Content-Type", "application/javascript;charset=UTF-8")
259 c.writeToWriter(callback_content.Bytes()) 259 c.writeToWriter(callback_content.Bytes())
260 } 260 }
261 261
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!