We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 744eb04 commit f4e0c02Copy full SHA for f4e0c02
tests/integration/test_max_request_size.py
@@ -82,3 +82,12 @@ def test_payload_exceeds_max_request_size_query(self):
82
response = requests.post(url, data=self.create_large_payload(), headers=headers)
83
self.assertEqual(413, response.status_code)
84
85
+ def test_no_content_length_header_present(self):
86
+ headers = { "Content-Type": "application/json" }
87
+ url = self._get_url() + "/evaluate"
88
+ response = requests.post(url, headers=headers)
89
+ message = json.loads(response.text)["message"]
90
+ # Ensure it gets to processing message stage in EvaluationPlaneHandler.post
91
+ self.assertEqual("Error processing script", message)
92
+ self.assertEqual(500, response.status_code)
93
+
0 commit comments