Fix/base64 handling (Issue #342) (#343)

Co-authored-by: David Soria Parra <167242713+dsp-ant@users.noreply.github.com>
This commit is contained in:
evalstate
2025-03-27 09:18:02 +00:00
committed by GitHub
parent e5ee279614
commit 6d66ab8be0
2 changed files with 90 additions and 1 deletions

View File

@@ -301,7 +301,7 @@ class Server(Generic[LifespanResultT]):
return types.BlobResourceContents(
uri=req.params.uri,
blob=base64.urlsafe_b64encode(data).decode(),
blob=base64.b64encode(data).decode(),
mimeType=mime_type or "application/octet-stream",
)