Fix get_data to return str instead of buffer
This commit is contained in:
1 parent
cd14900b81
commit
28b25eb2e5
1 file changed
+1
-1
@@ -510,7 +510,7 @@ class Collection(ModelSQL, ModelView):
|
||||
data = DAV_NotFound
|
||||
try:
|
||||
if attachment.data is not None:
|
||||
data = attachment.data
|
||||
data = str(attachment.data)
|
||||
except Exception:
|
||||
pass
|
||||
if attachment.id == object_id:
|
||||
|
||||
Reference in new issue
Block a user