blob: 5645023cf1b8c1b9fef323845ae59c7f78463ab8 [file] [log] [blame]
GET https://golang.org/x/net
code == 200
body contains <meta name="go-import" content="golang.org/x/net git https://go.googlesource.com/net">
body contains http-equiv="refresh" content="0; url=https://pkg.go.dev/golang.org/x/net">
GET https://golang.org/x/net/suffix
code == 200
body contains <meta name="go-import" content="golang.org/x/net git https://go.googlesource.com/net">
body contains http-equiv="refresh" content="0; url=https://pkg.go.dev/golang.org/x/net/suffix">
GET https://golang.org/x/pkgsite
code == 200
body contains <meta name="go-import" content="golang.org/x/pkgsite git https://go.googlesource.com/pkgsite">
body contains <a href="https://pkg.go.dev/golang.org/x/pkgsite">Redirecting to documentation...</a>
body contains http-equiv="refresh" content="0; url=https://pkg.go.dev/golang.org/x/pkgsite">
GET https://golang.org/x/notexist
code == 404
GET https://golang.org/x/
code == 307
header location == https://pkg.go.dev/golang.org/x
GET https://golang.org/x/In%20Valid,X
code == 404
GET https://golang.org/x/website/info/refs?service=git-upload-pack
code == 404
body contains Use 'git clone https://go.googlesource.com/website' instead.