Paths and fragments in Location header

See Ticket 43: Fragment combination / precedence during redirects and Ticket 185: Location header payload handling.

Test Cases

Case Original URI Location header Expected Final URI Chrome / Firefox / IE8 Opera Safari
T1 http://127.0.0.1:8090//red-uri+frag.asis http://127.0.0.1:8090//test#anchor2 http://127.0.0.1:8090//test#anchor2 OK OK OK
T2 http://127.0.0.1:8090//red-uri.asis http://127.0.0.1:8090//test http://127.0.0.1:8090//test OK OK OK
T3 http://127.0.0.1:8090//red-uri+frag.asis#anchor1 http://127.0.0.1:8090//test#anchor2 http://127.0.0.1:8090//test#anchor2 OK Fail: uses orig. fragment OK
T4 http://127.0.0.1:8090//red-uri.asis#anchor1 http://127.0.0.1:8090//test http://127.0.0.1:8090//test#anchor1 OK OK Fail: drops orig. fragment
T5 http://127.0.0.1:8090//red-path+frag.asis /test#anchor2 http://127.0.0.1:8090//test#anchor2 OK OK OK
T6 http://127.0.0.1:8090//red-path.asis /test http://127.0.0.1:8090//test OK OK OK
T7 http://127.0.0.1:8090//red-path+frag.asis#anchor1 /test#anchor2 http://127.0.0.1:8090//test#anchor2 OK Fail: uses orig. fragment OK
T8 http://127.0.0.1:8090//red-path.asis#anchor1 /test http://127.0.0.1:8090//test#anchor1 OK OK Fail: drops orig. fragment