Chunk single;
- single.host = this->driver_->hostName_;
- single.path = "/vfs" + rloc.path;
+ single.url.domain = this->driver_->hostName_;
+ single.url.path = "/vfs" + rloc.path;
single.offset = 0;
single.size = fstat.st_size;
- single["token"] = dmlite::generateToken(this->driver_->userId_, single.path,
- this->driver_->tokenPasswd_,
- this->driver_->tokenLife_);
+ single.url.query["token"] = dmlite::generateToken(this->driver_->userId_, single.url.path,
+ this->driver_->tokenPasswd_,
+ this->driver_->tokenLife_);
return Location(1, single);
}
Chunk single;
- single.host = this->hostName_;
- single.path = "/vfs" + rloc.path;
+ single.url.domain = this->hostName_;
+ single.url.path = "/vfs" + rloc.path;
single.offset = 0;
single.size = fstat.st_size;
- single["token"] = dmlite::generateToken(this->userId_, single.path,
- this->tokenPasswd_,
- this->tokenLife_);
+ single.url.query["token"] = dmlite::generateToken(this->userId_, single.url.path,
+ this->tokenPasswd_,
+ this->tokenLife_);
return Location(1, single);
}