]> Cypherpunks repositories - gostls13.git/commit
net/http/client.go: fix cookie handling on (*Client) Do()
authorPawel Szczur <filemon@google.com>
Mon, 29 Oct 2012 16:56:31 +0000 (17:56 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 29 Oct 2012 16:56:31 +0000 (17:56 +0100)
commit4918e3a960c382e673f632c57e155373c73f0c1c
tree334d0c665fba472ccc7c15bea0306503e8ff82ca
parent8010a430a238659a567c8b6f6492feb625651562
net/http/client.go: fix cookie handling on (*Client) Do()

Fix the problem with no cookie handling when sending
other than GET or HEAD request through
(*Client) Do(*Request) (*Resposne, error).
https://code.google.com/p/go/issues/detail?id=3985

Adds a function (*Client) send(*Request) (*Reponse, error):
- sets cookies from CookieJar to request,
- sends request
- parses a reply cookies and updates CookieJar

Fixes #3985

R=bradfitz
CC=gobot, golang-dev
https://golang.org/cl/6653049
src/pkg/net/http/client.go
src/pkg/net/http/client_test.go
src/pkg/net/http/jar.go