summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-02-15 14:16:18 +0100
committerChristian Heimes <christian@cheimes.de>2013-02-15 14:16:18 +0100
commitdd836af75d3f53433d45cd2b5e8f0f576d50f292 (patch)
treef122ba75a1d073f67f76f6a76b4eaaafa955c18d
parent305455aa9ca548267dd0ae47c4139da2240e6db5 (diff)
downloaddefusedxml-dd836af75d3f53433d45cd2b5e8f0f576d50f292.tar.gz
document -1
-rw-r--r--defusedxml/xmlrpc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/defusedxml/xmlrpc.py b/defusedxml/xmlrpc.py
index ff900e7..0829916 100644
--- a/defusedxml/xmlrpc.py
+++ b/defusedxml/xmlrpc.py
@@ -40,6 +40,7 @@ except ImportError:
# Limit maximum request size to prevent resource exhaustion DoS
# Also used to limit maximum amount of gzip decoded data in order to prevent
# decompression bombs
+# A value of -1 or smaller disables the limit
MAX_DATA = 30 * 1024 * 1024 # 30 MB
def defused_gzip_decode(data, limit=None):