Black Lives Matter. Support the Equal Justice Initiative.

Text file src/cmd/go/testdata/script/get_insecure_redirect.txt

Documentation: cmd/go/testdata/script

     1  # golang.org/issue/29591: 'go get' was following plain-HTTP redirects even without -insecure (now replaced by GOINSECURE).
     2  # golang.org/issue/34049: 'go get' would panic in case of an insecure redirect in GOPATH mode
     3  
     4  [!net] skip
     5  [!exec:git] skip
     6  
     7  env GO111MODULE=off
     8  
     9  ! go get -d vcs-test.golang.org/insecure/go/insecure
    10  stderr 'redirected .* to insecure URL'
    11  
    12  env GOINSECURE=vcs-test.golang.org/insecure/go/insecure
    13  go get -d vcs-test.golang.org/insecure/go/insecure
    14  

View as plain text