mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 14:24: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:
@ -377,7 +377,7 @@ func TestWebmail(t *testing.T) {
|
||||
}
|
||||
rr := httptest.NewRecorder()
|
||||
rr.Body = &bytes.Buffer{}
|
||||
handle(apiHandler, false, rr, req)
|
||||
handle(apiHandler, false, "", rr, req)
|
||||
if rr.Code != expStatusCode {
|
||||
t.Fatalf("got status %d, expected %d (%s)", rr.Code, expStatusCode, readBody(rr.Body))
|
||||
}
|
||||
|
Reference in New Issue
Block a user