Skip to content

Commit 25cb655

Browse files
Add request_body_size_within_limit check to query.
1 parent 561983c commit 25cb655

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tabpy/tabpy_server/handlers/query_plane_handler.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ def get(self, endpoint_name):
217217
self.fail_with_auth_error()
218218
return
219219

220+
if not self.request_body_size_within_limit():
221+
return
222+
220223
start = time.time()
221224
endpoint_name = urllib.parse.unquote(endpoint_name)
222225
self._process_query(endpoint_name, start)
@@ -229,6 +232,9 @@ def post(self, endpoint_name):
229232
self.fail_with_auth_error()
230233
return
231234

235+
if not self.request_body_size_within_limit():
236+
return
237+
232238
start = time.time()
233239
endpoint_name = urllib.parse.unquote(endpoint_name)
234240
self._process_query(endpoint_name, start)

0 commit comments

Comments
 (0)