Open RobinNil opened 6 years ago
This is to add support/fix bugs for having multiple X-Forwarded-For entries. The commit message has details of the implementations.
There is a bug on the test case where "X-Forwarded-For" headers were not added (but were replaced instead): https://github.com/tomasen/realip/compare/master...RobinNil:master#diff-ffc776942d64deeeecf0f5ff91c039bfL55
@tomasen could you help review? thanks.
This PR addresses all the concerns in https://github.com/tomasen/realip/issues/5
This is to add support/fix bugs for having multiple X-Forwarded-For entries. The commit message has details of the implementations.
There is a bug on the test case where "X-Forwarded-For" headers were not added (but were replaced instead): https://github.com/tomasen/realip/compare/master...RobinNil:master#diff-ffc776942d64deeeecf0f5ff91c039bfL55