diff options
Diffstat (limited to 'internal/http/http_test.go')
| -rw-r--r-- | internal/http/http_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/http/http_test.go b/internal/http/http_test.go index 371b4a8..49df931 100644 --- a/internal/http/http_test.go +++ b/internal/http/http_test.go @@ -43,11 +43,11 @@ func Test_JoinURLPath(t *testing.T) { p string want string }{ - {u: "https://example.com", p: "test", want: "https://example.com/test/"}, - {u: "https://example.com", p: "/test", want: "https://example.com/test/"}, - {u: "https://example.com", p: "../test", want: "https://example.com/test/"}, - {u: "https://example.com", p: "../test/", want: "https://example.com/test/"}, - {u: "https://example.com", p: "test/", want: "https://example.com/test/"}, + {u: "https://example.com", p: "test", want: "https://example.com/test"}, + {u: "https://example.com", p: "/test", want: "https://example.com/test"}, + {u: "https://example.com", p: "../test", want: "https://example.com/test"}, + {u: "https://example.com", p: "../test/", want: "https://example.com/test"}, + {u: "https://example.com", p: "test/", want: "https://example.com/test"}, } for _, c := range cases { got, err := JoinURLPath(c.u, c.p) |
