mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
Allow content-types with ';' in charset, fix #279
This commit is contained in:
parent
e69bec1272
commit
a0fc07a894
1 changed files with 2 additions and 1 deletions
|
@ -159,7 +159,8 @@ class Application(object):
|
|||
# First append content charset given in the request
|
||||
content_type = environ.get("CONTENT_TYPE")
|
||||
if content_type and "charset=" in content_type:
|
||||
charsets.append(content_type.split("charset=")[1].strip())
|
||||
charsets.append(
|
||||
content_type.split("charset=")[1].split(";")[0].strip())
|
||||
# Then append default Radicale charset
|
||||
charsets.append(self.encoding)
|
||||
# Then append various fallbacks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue