summaryrefslogtreecommitdiff
path: root/src/pkg/http/reverseproxy_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/reverseproxy_test.go')
-rw-r--r--src/pkg/http/reverseproxy_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/http/reverseproxy_test.go b/src/pkg/http/reverseproxy_test.go
index b2dd24633..8078c8d10 100644
--- a/src/pkg/http/reverseproxy_test.go
+++ b/src/pkg/http/reverseproxy_test.go
@@ -11,6 +11,7 @@ import (
"http/httptest"
"io/ioutil"
"testing"
+ "url"
)
func TestReverseProxy(t *testing.T) {
@@ -32,7 +33,7 @@ func TestReverseProxy(t *testing.T) {
w.Write([]byte(backendResponse))
}))
defer backend.Close()
- backendURL, err := ParseURL(backend.URL)
+ backendURL, err := url.Parse(backend.URL)
if err != nil {
t.Fatal(err)
}