Fix a bug with the new requests code.