It is indeed a bug and fixed 
here: 
https://github.com/c3mb0/net/commit/bdd343fc172dd9790b5936c77a9d6f7b580c3591
Fixed with a $ go get -u golang.org/x/net

On Thursday, August 9, 2018 at 8:06:49 PM UTC+2, Willem de Groot wrote:
>
> A http2 crawler with custom transport chokes on URIs with double slashes. 
> Is it a bug? Testcase:
>
> func TestDoubleSlashInUrl(t *testing.T) {
> url := "https://http2.akamai.com//demo";
> tr := &http.Transport{}
> if e := http2.ConfigureTransport(tr); e != nil {
> t.Fatal("Could not configure h2 transport")
> }
> cl := &http.Client{Transport: tr}
> _, err := cl.Get(url)
> if err != nil {
> t.Fatal("err: ", err)
> }
> }
>
> I need to use a custom transport for custom timeouts, and according to the 
> docs I need to run http2.ConfigureTransport to enable HTTP2. 
> The DefaultClient doesn't exhibit this behavior.
>
> go version go1.10.1 linux/amd64
>
> Thanks!
> Willem
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to