In my application, the most recent cookie value with the same name is returned on the next request.
On Tuesday, July 14, 2020 at 1:54:56 PM UTC-6, atd...@gmail.com wrote: > > Hello, > > As I am writing some tests, I was wondering what should be the correct > behavior when http.SetCookie is called twice with cookies of a same name > but different values. > > For example, what should a user-agent see as the cookie value and hence, > what should it return back to the server with the next request? > > https://play.golang.org/p/nYDmcFcd8Qj > > Many thanks! > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/442794c0-c906-4472-ba8a-6017a22e19e8o%40googlegroups.com.