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

Commit

Permalink
Convert MXCUri to string before JSON encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Jul 6, 2022
1 parent f7a37c8 commit 59bb524
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/rest/media/v1/upload_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@ async def _async_render_POST(self, request: SynapseRequest) -> None:

logger.info("Uploaded content with URI %r", content_uri)

respond_with_json(request, 200, {"content_uri": content_uri}, send_cors=True)
respond_with_json(
request, 200, {"content_uri": content_uri.to_string()}, send_cors=True
)

0 comments on commit 59bb524

Please sign in to comment.