Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 116015f

Browse files
committed
Clarify where media_type comes from.
1 parent b9a1c66 commit 116015f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

synapse/rest/media/v1/preview_url_resource.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ async def _parse_data_url(
467467
# Read back the length that has been written.
468468
length = output_stream.tell()
469469

470+
# urlopen shoves the media-type from the data URL into the content type
471+
# header object.
470472
media_type = url_info.headers.get_content_type()
471473

472474
# Some features are not supported by data: URLs.

0 commit comments

Comments
 (0)