|
@@ -330,12 +330,12 @@ JsonCommander::Response JsonCommander::executeHead(const Json::Value &message) {
|
|
|
response.json["data"] = base64::encodeVector(res.first);
|
|
|
response.json["error"] = "";
|
|
|
} else if (res.second == FileManager::headError::no_such_file) {
|
|
|
- response.json["accept"] = true;
|
|
|
+ response.json["accept"] = false;
|
|
|
response.json["file"] = message["file"].asString();
|
|
|
response.json["data"] = "";
|
|
|
response.json["error"] = "no such file";
|
|
|
} else {
|
|
|
- response.json["accept"] = true;
|
|
|
+ response.json["accept"] = false;
|
|
|
response.json["file"] = message["file"].asString();
|
|
|
response.json["data"] = "";
|
|
|
response.json["error"] = "file is smaller than specified size";
|