rc: fix unmarshalable http.AuthFn in options and put in test for marshalability
This commit is contained in:
parent
99eaa76dc8
commit
0693deea1c
3 changed files with 37 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue