jsonp set header to javascript
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment