mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 13:44:37 +03:00
webmail: show link to webaccount interface in top right
only if account web interface is enabled on the same listener and same http/https scheme.
This commit is contained in:
@ -104,7 +104,7 @@ func TestView(t *testing.T) {
|
||||
// We start an actual HTTP server to easily get a body we can do blocking reads on.
|
||||
// With a httptest.ResponseRecorder, it's a bit more work to parse SSE events as
|
||||
// they come in.
|
||||
server := httptest.NewServer(http.HandlerFunc(Handler(1024*1024, "/webmail/", false)))
|
||||
server := httptest.NewServer(http.HandlerFunc(Handler(1024*1024, "/webmail/", false, "")))
|
||||
defer server.Close()
|
||||
|
||||
serverURL, err := url.Parse(server.URL)
|
||||
|
Reference in New Issue
Block a user