Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(882)

Unified Diff: src/pkg/net/http/client_test.go

Issue 6653049: code review 6653049: net/http/client.go: fix cookie handling on (*Client) Do()
Patch Set: diff -r bb4ee132b967 https://code.google.com/p/go Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/pkg/net/http/client_test.go
===================================================================
--- a/src/pkg/net/http/client_test.go
+++ b/src/pkg/net/http/client_test.go
@@ -285,6 +285,10 @@
req, _ := NewRequest("GET", us, nil)
client.Do(req) // Note: doesn't hit network
matchReturnedCookies(t, expectedCookies, tr.req.Cookies())
+
+ req, _ = NewRequest("POST", us, nil)
+ client.Do(req) // Note: doesn't hit network
+ matchReturnedCookies(t, expectedCookies, tr.req.Cookies())
}
// Just enough correctness for our redirect tests. Uses the URL.Host as the

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b