Request was not passed when spark is constructed

As a result spark.http was always undefined.