mirror of https://github.com/gin-gonic/gin.git
fix: description error (#2961)
This commit is contained in:
parent
823adfc91a
commit
ffb3b73430
|
@ -1102,7 +1102,7 @@ type Negotiate struct {
|
||||||
Data interface{}
|
Data interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Negotiate calls different Render according acceptable Accept format.
|
// Negotiate calls different Render according to acceptable Accept format.
|
||||||
func (c *Context) Negotiate(code int, config Negotiate) {
|
func (c *Context) Negotiate(code int, config Negotiate) {
|
||||||
switch c.NegotiateFormat(config.Offered...) {
|
switch c.NegotiateFormat(config.Offered...) {
|
||||||
case binding.MIMEJSON:
|
case binding.MIMEJSON:
|
||||||
|
|
Loading…
Reference in New Issue