Skip to content

Commit

Permalink
undo testing change
Browse files Browse the repository at this point in the history
  • Loading branch information
irshadaj committed Feb 5, 2024
1 parent 9e3cbe7 commit ba742f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/api/src/api/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func ContextMiddleware(next http.Handler) http.Handler {

func parseUserIP(r *http.Request) string {
if result := r.Header.Get("X-Forwarded-For"); result == "" {
log.Warnf("No data found in X-Forwarded-For header for request ID %s", r.Header.Get(headers.RequestID.String()))
log.Warnf("No data found in X-Forwarded-For header")
return r.RemoteAddr
} else {
result += "," + r.RemoteAddr
Expand Down

0 comments on commit ba742f5

Please sign in to comment.