Correctly handle redirection to a relative url and unify redirection handling by using URI.join
Correctly handle redirection to a relative url and unify redirection handling by using URI.join

sobrinho/httpi,mbrung/httpi,liftforward/httpi,savonrb/httpi