use comma ok and use single line (#984)
This commit is contained in:
		
							
								
								
									
										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 = "/"
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user