1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-11 17:59:35 +00:00
Commit graph

5 commits

Author SHA1 Message Date
Matt Palmer 4d3d6f8d3a Strip non-address characters from Forwarded for=
This is something of a followup to #2528, which asked for port information to not be included in  when it was taken from the local socket.

The  header's  element may optionally contain port information (https://datatracker.ietf.org/doc/html/rfc7239#section-6).
However, as I understand it,  is *supposed* to only contain an IP address, without port (per #2528).

This PR corrects that discrepancy, making it easier to parse the result of this method in application code.

There should not be any compatibility concerns, as anyone parsing the output of  would already need to handle both port and portless cases anyway.
2024-04-27 06:46:25 +10:00
Rob Ede fa106da555
refactor: move Host guard into own module 2023-01-30 11:36:12 -05:00
Expyron 9b0fdca6e9
Remove some unnecessary uses of once_cell::sync::Lazy (#2816) 2022-07-22 20:18:38 +01:00
Rob Ede 3f03af1c59
clippy 2022-03-02 03:25:30 +00:00
Rob Ede bcdde1d4ea
move actix-web to own dir 2022-02-01 00:30:41 +00:00
Renamed from src/info.rs (Browse further)