diff options
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-x | Lib/cgi.py | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -852,7 +852,7 @@ class FieldStorage: if ctype == 'application/x-www-form-urlencoded': self.read_urlencoded() elif ctype[:10] == 'multipart/': - self.read_multi() + self.read_multi(environ, keep_blank_values, strict_parsing) else: self.read_single() @@ -919,14 +919,16 @@ class FieldStorage: self.list.append(MiniFieldStorage(key, value)) self.skip_lines() - def read_multi(self): + def read_multi(self, environ, keep_blank_values, strict_parsing): """Internal: read a part that is itself multipart.""" self.list = [] - part = self.__class__(self.fp, {}, self.innerboundary) + part = self.__class__(self.fp, {}, self.innerboundary, + environ, keep_blank_values, strict_parsing) # Throw first part away while not part.done: headers = rfc822.Message(self.fp) - part = self.__class__(self.fp, headers, self.innerboundary) + part = self.__class__(self.fp, headers, self.innerboundary, + environ, keep_blank_values, strict_parsing) self.list.append(part) self.skip_lines() |