From 5f2205981b2ed8599ff4939f4da18b6e9465e1ee Mon Sep 17 00:00:00 2001 From: Rusty Conover Date: Sun, 25 Oct 2015 13:01:45 -0400 Subject: [PATCH] Fix failing test case When building a URL don't include path components in the host parameter. Closes #1124 Signed-off-by: Rusty Conover --- registry/api/v2/urls_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registry/api/v2/urls_test.go b/registry/api/v2/urls_test.go index 61d41547..fdcfc31a 100644 --- a/registry/api/v2/urls_test.go +++ b/registry/api/v2/urls_test.go @@ -238,7 +238,8 @@ func TestBuilderFromRequestWithPrefix(t *testing.T) { base: "https://subdomain.example.com/prefix/", configHost: url.URL{ Scheme: "https", - Host: "subdomain.example.com/prefix", + Host: "subdomain.example.com", + Path: "/prefix/", }, }, }