mirror of
https://github.com/mjl-/mox.git
synced 2025-04-21 13:39:45 +03:00
![]() The default paths for the web interfaces, such as /admin/, /account/, /webmail/ and /webapi/ end with a slash. They should end with a slash because we use the path when restricting cookies to just that web interface. You could configure paths not ending with a slash, but due to using http.StripPrefix, and our handler, some of those requests may not work properly. We now warn if configured paths don't end with a trailing slash when parsing the config file. We normally error out when such things happen, but users probably have paths without trailing slashes configured, and we don't want to break them on a future upgrade. We now use an effective path that includes the trailing slash. We would always redirect requests to the configured paths but without trailing slash to the path with trailing slash, and that stays. For issue #325 by odama626. |
||
---|---|---|
.. | ||
atime.go | ||
atime_bsd.go | ||
atime_windows.go | ||
autoconf.go | ||
autoconf_test.go | ||
favicon.ico | ||
gzcache.go | ||
main_test.go | ||
mobileconfig.go | ||
mtasts.go | ||
mtasts_test.go | ||
web.go | ||
web_test.go | ||
webserver.go | ||
webserver_test.go |