Skip to content

Commit

Permalink
Add request_body_size_within_limit check to query.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeichikawasalesforce committed May 19, 2023
1 parent 561983c commit 25cb655
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tabpy/tabpy_server/handlers/query_plane_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ def get(self, endpoint_name):
self.fail_with_auth_error()
return

if not self.request_body_size_within_limit():
return

start = time.time()
endpoint_name = urllib.parse.unquote(endpoint_name)
self._process_query(endpoint_name, start)
Expand All @@ -229,6 +232,9 @@ def post(self, endpoint_name):
self.fail_with_auth_error()
return

if not self.request_body_size_within_limit():
return

start = time.time()
endpoint_name = urllib.parse.unquote(endpoint_name)
self._process_query(endpoint_name, start)

0 comments on commit 25cb655

Please sign in to comment.