Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build /notify URL respecting multiple path segments (#2027)
# Description The current logic to build the `/notify` URL doesn't handle URLs that contain multiple path segments correctly. Take this http solver URL for example: `https://miep.cow.solver/1/solve?api_key=1234#row=3` which consists of the base `https://miep.cow.solver` and the `solve_endpoint` `/1/solve?api_key=1234#row=3`. The old logic would have computed the notify endpoint to be `https://miep.cow.solver/notify` whereas `https://miep.cow.solver/1/notify?api_key=1234#row=3` actually makes more sense. (`/notify` as a sibling to `/solve`). # Changes Always make `/notify` a sibling of `/solve` (including all query parameters and fragments). ## How to test https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=5d4168862014d3876c28c19153b4267c
- Loading branch information