mirror of https://github.com/gin-gonic/gin.git
use comma ok and use single line (#984)
This commit is contained in:
parent
34e972e155
commit
e0fd6238d3
10
context.go
10
context.go
|
@ -562,15 +562,7 @@ func (c *Context) GetRawData() ([]byte, error) {
|
|||
return ioutil.ReadAll(c.Request.Body)
|
||||
}
|
||||
|
||||
func (c *Context) SetCookie(
|
||||
name string,
|
||||
value string,
|
||||
maxAge int,
|
||||
path string,
|
||||
domain string,
|
||||
secure bool,
|
||||
httpOnly bool,
|
||||
) {
|
||||
func (c *Context) SetCookie(name, value string, maxAge int, path, domain string, secure, httpOnly bool) {
|
||||
if path == "" {
|
||||
path = "/"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue