cmd/syncthing: Accept ISO-8859-1 and UTF-8 in HTTP BasicAuth header (fixes #2779)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2989
This commit is contained in:
Jakob Borg
2016-04-18 20:24:38 +00:00
parent b81c8d2e1b
commit 893cc025f9
3 changed files with 151 additions and 40 deletions

View File

@@ -11,10 +11,12 @@ import (
"github.com/syncthing/syncthing/lib/protocol"
)
type mockedConfig struct{}
type mockedConfig struct {
gui config.GUIConfiguration
}
func (c *mockedConfig) GUI() config.GUIConfiguration {
return config.GUIConfiguration{}
return c.gui
}
func (c *mockedConfig) Raw() config.Configuration {