Fixes #10433.
Change-Id: I2a8b54e3f07488f204b1d14eb2603842caaf1e5a
Reviewed-on: https://go-review.googlesource.com/17386
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
                },
                "",
        },
+       // golang.org/issue/10433 (path beginning with //)
+       {
+               "http://example.com//foo",
+               &URL{
+                       Scheme: "http",
+                       Host:   "example.com",
+                       Path:   "//foo",
+               },
+               "",
+       },
 }
 
 // more useful string for debugging than fmt's struct printer
                },
                "opaque?q=go+language",
        },
+       {
+               &URL{
+                       Scheme: "http",
+                       Host:   "example.com",
+                       Path:   "//foo",
+               },
+               "//foo",
+       },
 }
 
 func TestRequestURI(t *testing.T) {