bugfix: edge case where remote server misbehaves

handles case where remote server sends a redirect without
sending a new destination