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
commit 6d66ab8be0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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",
)