We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd1173a commit 4be7e98Copy full SHA for 4be7e98
tools/apitester/internal/vcr/interactions.go
@@ -35,7 +35,7 @@ func Play(t *testing.T, interaction *cassette.Interaction) *http.Response {
35
req.Header.Set("User-Agent", "osv.dev/apitester")
36
req.ContentLength = -1
37
38
- if req.URL.Host == "localhost" || req.URL.Host == "127.0.0.1" {
+ if req.URL.Hostname() == "localhost" || req.URL.Hostname() == "127.0.0.1" {
39
req.URL.Scheme = "http"
40
}
41
0 commit comments