1. Ben Rousch
  2. CherryPy

Commits

Robert Brewer  committed 86b4c45

Test max request on larger bodies.

  • Participants
  • Parent commits f0a9263
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/test/test_core.py

View file
             self.assertHeader('Set-Cookie', 'Last=Piranha;')
     
     def testMaxRequestSize(self):
-        self.getPage("/", headers=[('From', "x" * 500)])
-        self.assertStatus(413)
+        for size in (500, 5000, 50000):
+            self.getPage("/", headers=[('From', "x" * 500)])
+            self.assertStatus(413)
         
         # Test for http://www.cherrypy.org/ticket/421
         # (Incorrect border condition in readline of SizeCheckWrapper).