This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 869fae77e3a93790d08ea977e3edf647794783f5 Author: Daniel Gruno <[email protected]> AuthorDate: Sun Mar 28 21:35:08 2021 +0200 set a fallback so we can .find in it --- server/plugins/formdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins/formdata.py b/server/plugins/formdata.py index fe58840..6e6b943 100644 --- a/server/plugins/formdata.py +++ b/server/plugins/formdata.py @@ -46,7 +46,7 @@ async def parse_formdata(body_type, request: aiohttp.web.BaseRequest) -> dict: "multipart/form-data" in request.headers.get("content-type", "").lower() ): - fh = request.headers.get("content-type") + fh = request.headers.get("content-type", "" ) fb = fh.find("boundary=") if fb > 0: boundary = fh[fb + 9 :]
