summaryrefslogtreecommitdiff
path: root/src/pkg/http/request_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/request_test.go')
-rw-r--r--src/pkg/http/request_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/http/request_test.go b/src/pkg/http/request_test.go
index 86ec0efac..4c3cbf8a5 100644
--- a/src/pkg/http/request_test.go
+++ b/src/pkg/http/request_test.go
@@ -62,9 +62,8 @@ func TestParseForm(t *testing.T) {
}
func TestQuery(t *testing.T) {
- var err os.Error;
req := &Request{ Method: "GET" };
- req.Url, err = ParseURL("http://www.google.com/search?q=foo&q=bar");
+ req.Url, _ = ParseURL("http://www.google.com/search?q=foo&q=bar");
if q := req.FormValue("q"); q != "foo" {
t.Errorf(`req.FormValue("q") = %q, want "foo"`, q);
}