Minor bug fix to handle non compliant HTTP Location Header responses