do not follow redirects on api rpc calls. fixes #1