Robert Dyck writes:
On Wednesday 11 June 2008, Juha Heinanen wrote:
Robert Dyck writes:
Do I have this right? Loose_route return FALSE if there is no Route header or if the Route header was a preloaded route, otherwise it returns 1.
check rr module's README. what is important to me is that loose_route() returns true if there is one or more route headers and the topmost one is not for the proxy itself.
-- juha
You asked the question "if proxy removes automatically the first uri for itself, how do i know that it was removed?". Loose_route will not tell us this. After loose_route the topmost URI will never match the proxy but we do not know if loose_route removed an original topmost URI.
after loose_route, the topmost URI may still match the local proxy, because loose_route call removes only the topmost route header.
the important thing to me is that i can allow preloaded route set that only contains route header of the local proxy.
-- juha