diff options
author | Matthias Held <ilovemilk@wusa.io> | 2018-08-28 13:38:48 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2018-08-28 13:38:48 +0300 |
commit | 1311ec6a34a9458e11908b589a4216dc5ca30504 (patch) | |
tree | 069fc2cc9fc39970e22a1e9206c88073452d31b6 | |
parent | 511d7ca1381de38fc16baeb6be9300018198cc0c (diff) |
Fix short sequence is not a bad request
-rw-r--r-- | lib/Controller/ScanController.php | 2 |
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); } } |