Skip to content

Commit

Permalink
fix: omit omitAuthorization
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Jul 12, 2023
1 parent 76bf2cb commit 1c7dc65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/http/middleware/otel_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ func (rw *loggerResponseWriter) writeHeader(statusCode int) {

func omitAuthorization(u *url.URL) string {
query := u.Query()

query.Del("authorization")
query.Del("x-param-header-Authorization")

u.RawQuery = query.Encode()
return u.String()
}

0 comments on commit 1c7dc65

Please sign in to comment.