http-rs / http-types

Common types for HTTP operations
https://docs.rs/http-types
Apache License 2.0
200 stars 84 forks source link

Rewrite Forwarded header module #508

Open kyrias opened 2 years ago

kyrias commented 2 years ago

The previous implementation of Forwarded header parsing didn't implement anything closely resembling the specification of the Forwarded header in RFC 7239 and would fail on almost any real-world Forwarded header with more than one proxy, or with the parameters in a different order from what it expected.

This commit tries to implement the specification as accurately as possible.