Skip to content

Commit

Permalink
Disallow large lookup batches
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed May 7, 2023
1 parent cbd92cb commit 153ba4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acoustid/api/v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,9 @@ def _handle_internal(self, params):

assert params.max_duration_diff is not None

if len(params.fingerprints) > 10:
raise errors.RequestTooLargeError()

if params.batch:
fingerprints = params.fingerprints
else:
Expand Down

0 comments on commit 153ba4b

Please sign in to comment.