Skip to content

Commit

Permalink
add x-request-id to whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
isayme committed Jul 25, 2018
1 parent ffdd77a commit 580ce15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion response.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

var defaultHeaderFilterReg = regexp.MustCompile(
`(?i)^(accept|allow|retry-after|warning|vary|server|x-powered-by|access-control-allow-|x-ratelimit-)`)
`(?i)^(accept|allow|retry-after|warning|vary|server|x-powered-by|access-control-allow-|x-ratelimit-|x-request-id)`)

// Response wraps an http.ResponseWriter and implements its interface to be used
// by an HTTP handler to construct an HTTP response.
Expand Down

0 comments on commit 580ce15

Please sign in to comment.