File manager - Edit - /opt/imh-python/lib/python2.7/site-packages/werkzeug/contrib/limiter.pyc
Back
� �[�Rc @ s@ d Z d d l m Z d d l m Z d e f d � � YZ d S( s� werkzeug.contrib.limiter ~~~~~~~~~~~~~~~~~~~~~~~~ A middleware that limits incoming data. This works around problems with Trac_ or Django_ because those directly stream into the memory. .. _Trac: http://trac.edgewall.org/ .. _Django: http://www.djangoproject.com/ :copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. i����( t warn( t LimitedStreamt StreamLimitMiddlewarec B s# e Z d Z d d � Z d � Z RS( s@ Limits the input stream to a given number of bytes. This is useful if you have a WSGI application that reads form data into memory (django for example) and you don't want users to harm the server by uploading tons of data. Default is 10MB .. versionchanged:: 0.9 Deprecated middleware. i i c C s&