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