summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--swift/common/middleware/formpost.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/swift/common/middleware/formpost.py b/swift/common/middleware/formpost.py
index b81b75d61..ba4de7af8 100644
--- a/swift/common/middleware/formpost.py
+++ b/swift/common/middleware/formpost.py
@@ -242,7 +242,7 @@ def _iter_requests(wsgi_input, boundary):
:returns: A generator of file-like objects for each part.
"""
boundary = '--' + boundary
- if wsgi_input.readline().strip() != boundary:
+ if wsgi_input.readline(len(boundary + '\r\n')).strip() != boundary:
raise FormInvalid('invalid starting boundary')
boundary = '\r\n' + boundary
input_buffer = ''