Browse Source

Fix head errors xD

Jonas Pflanzer 5 years ago
parent
commit
c29ece0186
1 changed files with 2 additions and 2 deletions
  1. 2 2
      daemon/src/JsonCommander.cpp

+ 2 - 2
daemon/src/JsonCommander.cpp

@@ -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";