Skip to content

fix(context): add tests and documentation for ClientIP with X-Forwarded-For#4602

Open
xingzihai wants to merge 1 commit intogin-gonic:masterfrom
xingzihai:fix/issue-4572-clientip-xforwarded
Open

fix(context): add tests and documentation for ClientIP with X-Forwarded-For#4602
xingzihai wants to merge 1 commit intogin-gonic:masterfrom
xingzihai:fix/issue-4572-clientip-xforwarded

Conversation

@xingzihai
Copy link
Copy Markdown

Fixes #4572

Summary

This PR adds tests and documentation for ClientIP behavior with X-Forwarded-For header.

Changes

  • Added comprehensive tests for ClientIP with various X-Forwarded-For scenarios
  • Added documentation explaining ClientIP behavior

Testing

  • All new tests pass

…ed-For

Add comprehensive tests for ClientIP behavior with X-Forwarded-For header
handling, including edge cases for trusted proxies.

Issue: gin-gonic#4572
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non-standard X-Forwarded-For header content is not supported

1 participant