Parser of the Forwarded header ignores the port number #3009
Closed
Description
Long story short
Parser of the Forwarded header ignores the port number.
Expected behaviour
Parsing the header Forwarded: for=1.2.3.4:5678 should yield a request.forwarded value of ({"for": "1.2.3.4:5678"},).
Actual behaviour
Parsing the header Forwarded: for=1.2.3.4:5678 gives me request.forwarded value of ({"for": "1.2.3.4"},). That is, it removes the client port number.
Your environment
aiohttp 3.2.1 / Python 3.6.5.