setcookie set to unique. fix multi setcookie
This commit is contained in:
		
							parent
							
								
									a242f61b8e
								
							
						
					
					
						commit
						f46388fa63
					
				| @ -95,7 +95,7 @@ func (ctx *Context) SetCookie(name string, value string, others ...interface{}) | ||||
| 	if len(others) > 4 { | ||||
| 		fmt.Fprintf(&b, "; HttpOnly") | ||||
| 	} | ||||
| 	ctx.SetHeader("Set-Cookie", b.String(), true) | ||||
| 	ctx.SetHeader("Set-Cookie", b.String(), false) | ||||
| } | ||||
| 
 | ||||
| var cookieNameSanitizer = strings.NewReplacer("\n", "-", "\r", "-") | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user