loginsrv

Unnamed repository; edit this file 'description' to name the repository.
git clone git@jamesshield.xyz:repos/loginsrv.git
Log | Files | Refs | README | LICENSE

commit 449987a7eb87e17afa380e5c8395bfb5fe21121c
parent 550bed11a6917c74d4c88ebe41a93696a06aecdf
Author: Sebastian Mancke <s.mancke@tarent.de>
Date:   Wed, 14 Mar 2018 09:21:27 +0100

Merge pull request #77 from magikstm/Cross-Platform-Filepath-Caddy-Setup-Test

Minor correction for cross-platform filepath
Diffstat:
Mcaddy/setup_test.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/caddy/setup_test.go b/caddy/setup_test.go @@ -4,6 +4,7 @@ import ( "fmt" "io/ioutil" "os" + "path/filepath" "testing" "time" @@ -221,6 +222,6 @@ func TestSetup_RelativeFiles(t *testing.T) { } middleware := mids[len(mids)-1](nil).(*CaddyHandler) - Equal(t, root+"/myTemplate.tpl", middleware.config.Template) + Equal(t, filepath.FromSlash(root + "/myTemplate.tpl"), middleware.config.Template) Equal(t, "redirectDomains.txt", middleware.config.RedirectHostFile) }