mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 13:47:37 +03:00
Mark attributes for internal use with underscore
This commit is contained in:
parent
9b51e495ea
commit
1453c0b72c
11 changed files with 77 additions and 74 deletions
|
@ -127,11 +127,10 @@ def webdav_error(namespace, name):
|
|||
return root
|
||||
|
||||
|
||||
def get_content_type(item):
|
||||
def get_content_type(item, encoding):
|
||||
"""Get the content-type of an item with charset and component parameters.
|
||||
"""
|
||||
mimetype = OBJECT_MIMETYPES[item.name]
|
||||
encoding = item.collection.configuration.get("encoding", "request")
|
||||
tag = item.component_name
|
||||
content_type = "%s;charset=%s" % (mimetype, encoding)
|
||||
if tag:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue