fix doing csv request as HTTP API