Re: [go-nuts] Query regarding net/http/cookiejar: Cookies() method and Expiry/MaxAge

2022-07-01 Thread Amit Saha
On Thu, Jun 30, 2022 at 8:45 AM 'Sean Liao' via golang-nuts < golang-nuts@googlegroups.com> wrote: > Implement your own cookie jar, > > See also: > https://github.com/golang/go/issues/19291#issuecomment-282576908 > Thank you. From the issue comment, I don't quite understand this: > If the

Re: [go-nuts] Query regarding net/http/cookiejar: Cookies() method and Expiry/MaxAge

2022-06-29 Thread 'Sean Liao' via golang-nuts
Implement your own cookie jar, See also: https://github.com/golang/go/issues/19291#issuecomment-282576908 - sean On Wed, Jun 29, 2022 at 11:31 PM Amit Saha wrote: > Hi all, > > Currently the Cookies() method as explained at > https://pkg.go.dev/net/http/cookiejar#Jar.Cookies only adds the

[go-nuts] Query regarding net/http/cookiejar: Cookies() method and Expiry/MaxAge

2022-06-29 Thread Amit Saha
Hi all, Currently the Cookies() method as explained at https://pkg.go.dev/net/http/cookiejar#Jar.Cookies only adds the Name and Value of the cookies and strips out the MaxAge and Expires field (and all other fields). Presumably, as I can see in the code, the logic is if a cookie is returned as a