Skip to content

Commit

Permalink
Merge pull request #2827 from zffocussss/master
Browse files Browse the repository at this point in the history
add attribute remote_addr to req object
  • Loading branch information
benoitc committed Oct 15, 2022
2 parents 5062a63 + c9d01c8 commit d35ef47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gunicorn/http/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __init__(self, cfg, unreader, peer_addr):
self.cfg = cfg
self.unreader = unreader
self.peer_addr = peer_addr
self.remote_addr = peer_addr[0]
self.version = None
self.headers = []
self.trailers = []
Expand Down

0 comments on commit d35ef47

Please sign in to comment.