-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove duplicate HTTP_HOST * Set http.client_ip instead of net.peer.ip Tornado sets remote_ip to the value of X-Forwarded-For or X-Real-IP if the 'xheaders' setting is set. * Add a "handler" attribute, with full class name The spec has a 'http.route' which unfortunately seems difficult to get at. However the full class name is readily available and most helpful. * Add net.peer.ip from _orig_remote_ip * Address review comments - Don't set NET_PEER_IP if '_orig_remote_ip' is not set - Add a comment about the difference between the attributes * Make "handler" attribute into "tornado.handler" * Add CHANGELOG entry * Add test with X-Forwarded-For Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
- Loading branch information
1 parent
c143d05
commit 3b5071b
Showing
3 changed files
with
53 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters