Another MIME type that needs to be handled by FieldStorage.

This commit is contained in:
Itamar Turner-Trauring 2022-01-06 13:34:56 -05:00
parent 310b77aef0
commit 2864ff872d

View File

@ -115,7 +115,7 @@ class TahoeLAFSRequest(Request, object):
self.args = parse_qs(argstring, 1)
content_type = (self.requestHeaders.getRawHeaders("content-type") or [""])[0]
if self.method == b'POST' and content_type.split(";")[0] == "multipart/form-data":
if self.method == b'POST' and content_type.split(";")[0] in ("multipart/form-data", "application/x-www-form-urlencoded"):
# We use FieldStorage here because it performs better than
# cgi.parse_multipart(self.content, pdict) which is what
# twisted.web.http.Request uses.