mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 09:34:33 +08:00
Update json.go
This commit is contained in:
parent
27c2eb81eb
commit
b90df5cb17
@ -140,13 +140,9 @@ func (r JsonpJSON) Render(w http.ResponseWriter) (err error) {
|
||||
return err
|
||||
}
|
||||
_, err = w.Write([]byte(")"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// WriteContentType (JsonpJSON) writes Javascript ContentType.
|
||||
func (r JsonpJSON) WriteContentType(w http.ResponseWriter) {
|
||||
writeContentType(w, jsonpContentType)
|
||||
|
Loading…
x
Reference in New Issue
Block a user