Cache root urls with and without trailing slashes
The trailng slash on a pathless url is not meaningful, but we were treating the url given to the discovery cache as if it were. In some circumstances, such as an endpoint_override that didn't match the found discovery document perfectly, a double-request could be made. Normalize root urls in the caching code so that https://example.com and https://example.com/ would be the same. Change-Id: I70a5911cf0f213a7816fe8d58c6cca4702ff71bbchanges/35/604635/1
parent
58ac4c059a
commit
106d91fb41
@ -0,0 +1,8 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixed an issue where https://example.com and https://example.com/ were
|
||||
being treated as different urls in the discovery cache resulting in a
|
||||
second unneeded discovery call when someone sets an ``endpoint_override``
|
||||
that didn't match the trailing-slash form given by that service's
|
||||
discovery document.
|
Loading…
Reference in New Issue