Unverified Commit 119d3ae1 authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

refactor(server): move host filtering to tower middleware (#1179)

* refactor: move host filtering to tower middleware

* fix tests

* commit missing file

* fix match on authority

* add some tests for authority

* grumbles: Arc<WhitelistedHosts>

* grumbles: split host filter code

* add example for host filter middleware

* Update examples/examples/host_filter_middleware.rs

* url.rs -> middleware/authority.rs
parent 55010af7
Pipeline #376855 passed with stages
in 6 minutes and 11 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment