Skip to content

Commit

Permalink
authorizer: Replace ResponseRecorder.HeaderMap use
Browse files Browse the repository at this point in the history
* ResponseRecorder.HeaderMap is deprecated and hence is replaced
  by a ResponseRecorder.Header() call.
  • Loading branch information
yookoala committed Oct 13, 2020
1 parent f212f84 commit 7c83675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authorizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (ar Authorizer) Wrap(inner http.Handler) http.Handler {
// no problem from authorizer
// pass down variable to the inner handler
// and discard the authorizer stdout and stderr
for k, m := range rw.HeaderMap {
for k, m := range rw.Header() {
// looking for header with keys "Variable-*"
// strip the prefix and pass to the inner header
if len(k) > 9 && strings.HasPrefix(strings.ToLower(k), "variable-") {
Expand Down

0 comments on commit 7c83675

Please sign in to comment.