Skip to content

Commit

Permalink
set default header value so the token is never served without a name (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
madsi1m authored and labkode committed Dec 10, 2019
1 parent 8ebea92 commit ee58c96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type strategy struct {
}

func parseConfig(m map[string]interface{}) (*config, error) {
c := &config{}
c := &config{Header: "X-Access-Token"}
if err := mapstructure.Decode(m, c); err != nil {
err = errors.Wrap(err, "error decoding conf")
return nil, err
Expand Down

0 comments on commit ee58c96

Please sign in to comment.