fix self-redirect check with relative urls in Location
tests: add test for rel self-redirect
Merge branch '0.5.4-work' into develop