Allow BaseURL to contain full server url, including scheme and host. Fix #2183
This commit is contained in:
@@ -73,7 +73,7 @@ var _ = Describe("serveIndex", func() {
|
||||
})
|
||||
|
||||
It("sets baseURL", func() {
|
||||
conf.Server.BaseURL = "base_url_test"
|
||||
conf.Server.BasePath = "base_url_test"
|
||||
r := httptest.NewRequest("GET", "/index.html", nil)
|
||||
w := httptest.NewRecorder()
|
||||
|
||||
@@ -335,7 +335,7 @@ var _ = Describe("serveIndex", func() {
|
||||
Describe("loginBackgroundURL", func() {
|
||||
Context("empty BaseURL", func() {
|
||||
BeforeEach(func() {
|
||||
conf.Server.BaseURL = "/"
|
||||
conf.Server.BasePath = "/"
|
||||
})
|
||||
When("it is the default URL", func() {
|
||||
It("points to the default URL", func() {
|
||||
@@ -376,7 +376,7 @@ var _ = Describe("serveIndex", func() {
|
||||
})
|
||||
Context("with a BaseURL", func() {
|
||||
BeforeEach(func() {
|
||||
conf.Server.BaseURL = "/music"
|
||||
conf.Server.BasePath = "/music"
|
||||
})
|
||||
When("it is the default URL", func() {
|
||||
It("points to the default URL with BaseURL prefix", func() {
|
||||
|
||||
Reference in New Issue
Block a user