simplehttp: Properly handle redirection.