Fixed getRequest method