rc: fix unmarshalable http.AuthFn in options and put in test for marshalability

This commit is contained in:
Nick Craig-Wood 2019-08-10 16:22:17 +01:00
parent 99eaa76dc8
commit 0693deea1c
3 changed files with 37 additions and 8 deletions

View file

@ -97,7 +97,7 @@ type Options struct {
Realm string // realm for authentication
BasicUser string // single username for basic auth if not using Htpasswd
BasicPass string // password for BasicUser
Auth AuthFn // custom Auth (not set by command line flags)
Auth AuthFn `json:"-"` // custom Auth (not set by command line flags)
}
// AuthFn if used will be used to authenticate user, pass. If an error