1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-02 13:29:24 +00:00
actix-web/actix-web/src
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
..
error apply standard formatting 2023-07-17 02:38:12 +01:00
guard build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294) 2024-02-19 12:31:10 +00:00
http Add unicode feature to switch between regex and regex-lite crates as a trade-off between full unicode support and binary size (#3291) 2024-03-03 15:50:16 +00:00
middleware docs(actix-web): add missing 'that' to doc comments for Compress middleware (#3304) 2024-03-06 00:17:18 +00:00
response build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294) 2024-02-19 12:31:10 +00:00
test build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294) 2024-02-19 12:31:10 +00:00
types build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294) 2024-02-19 12:31:10 +00:00
app.rs build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294) 2024-02-19 12:31:10 +00:00
app_service.rs Actix Web Rustls v0.21 support (#3116) 2023-08-29 01:11:11 +01:00
config.rs apply standard formatting 2023-07-17 02:38:12 +01:00
data.rs chore: fix typos (#3248) 2024-01-16 11:29:06 +00:00
dev.rs apply standard formatting 2023-07-17 02:38:12 +01:00
extract.rs chore: avoid single char error bindings 2023-09-03 19:09:42 +01:00
handler.rs update handler failure mode docs 2023-10-11 16:07:18 +02:00
helpers.rs move actix-web to own dir 2022-02-01 00:30:41 +00:00
info.rs Strip non-address characters from Forwarded for= 2024-04-27 06:46:25 +10:00
lib.rs chore: remove allow(uninlined_format_args) 2023-12-16 10:33:00 +00:00
redirect.rs build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294) 2024-02-19 12:31:10 +00:00
request.rs build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294) 2024-02-19 12:31:10 +00:00
request_data.rs update MSRV to 1.65 (#3059) 2023-07-02 01:09:15 +01:00
resource.rs build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294) 2024-02-19 12:31:10 +00:00
rmap.rs Add http2 optional feature (#3072) 2023-07-17 20:59:10 +00:00
route.rs chore: bump env_logger to v0.11 2024-03-03 23:43:54 +00:00
rt.rs docs: add note about rt::spawn compat with tokio::main 2023-09-15 22:20:48 +01:00
scope.rs build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294) 2024-02-19 12:31:10 +00:00
server.rs chore(actix-web): prepare release 4.5.1 2024-02-04 01:22:36 +00:00
service.rs build(deps): bump taiki-e/install-action from 2.26.18 to 2.27.2 (#3294) 2024-02-19 12:31:10 +00:00
web.rs apply standard formatting 2023-07-17 02:38:12 +01:00