Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Held <ilovemilk@wusa.io>2018-08-28 13:38:48 +0300
committerMatthias Held <ilovemilk@wusa.io>2018-08-28 13:38:48 +0300
commit1311ec6a34a9458e11908b589a4216dc5ca30504 (patch)
tree069fc2cc9fc39970e22a1e9206c88073452d31b6
parent511d7ca1381de38fc16baeb6be9300018198cc0c (diff)
Fix short sequence is not a bad request
-rw-r--r--lib/Controller/ScanController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/ScanController.php b/lib/Controller/ScanController.php
index 9557892..e65670f 100644
--- a/lib/Controller/ScanController.php
+++ b/lib/Controller/ScanController.php
@@ -247,7 +247,7 @@ class ScanController extends OCSController
$sequenceResult = $this->sequenceAnalyzer->analyze(0, $sequenceForAnalyzer);
return new JSONResponse(['status' => 'success', 'suspicion_score' => $sequenceResult->getSuspicionScore(), 'sequence' => $sequenceResults], Http::STATUS_OK);
} else {
- return new JSONResponse(['status' => 'error', 'message' => 'Sequence is to short.'], Http::STATUS_BAD_REQUEST);
+ return new JSONResponse(['status' => 'error', 'message' => 'Sequence is to short.'], Http::STATUS_OK);
}
}