mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 01:57:55 +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
|
return err
|
||||||
}
|
}
|
||||||
_, err = w.Write([]byte(")"))
|
_, err = w.Write([]byte(")"))
|
||||||
if err != nil {
|
return err
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// WriteContentType (JsonpJSON) writes Javascript ContentType.
|
// WriteContentType (JsonpJSON) writes Javascript ContentType.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user