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 88356fac2c095537e5364298da5f43ba500932db
parent d881bd3ab91f7c03796569c6c57abe5e5cba92d3
Author: Sebastian Mancke <s.mancke@tarent.de>
Date:   Thu, 29 Jun 2017 09:53:15 +0200

Merge pull request #35 from tarent/bugfix/files_separator

change files/file separator from , to ;
Diffstat:
Mhtpasswd/backend.go | 4++--
Mhtpasswd/backend_test.go | 6+++---
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/htpasswd/backend.go b/htpasswd/backend.go @@ -24,13 +24,13 @@ func BackendFactory(config map[string]string) (login.Backend, error) { var files []string if f, exist := config["files"]; exist { - for _, file := range strings.Split(f, ",") { + for _, file := range strings.Split(f, ";") { files = append(files, file) } } if f, exist := config["file"]; exist { - for _, file := range strings.Split(f, ",") { + for _, file := range strings.Split(f, ";") { files = append(files, file) } } diff --git a/htpasswd/backend_test.go b/htpasswd/backend_test.go @@ -35,7 +35,7 @@ func TestSetupTwoFiles(t *testing.T) { morphed = append(morphed, File{name: curFile}) } backend, err := p(map[string]string{ - "file": strings.Join(filenames, ","), + "file": strings.Join(filenames, ";"), }) NoError(t, err) @@ -58,8 +58,8 @@ func TestSetupTwoConfigs(t *testing.T) { } backend, err := p(map[string]string{ - "files": strings.Join(configFiles, ","), - "file": strings.Join(configFile, ","), + "files": strings.Join(configFiles, ";"), + "file": strings.Join(configFile, ";"), }) NoError(t, err)