don't decode plus sign for legacy store

This commit is contained in:
Gabriel mermelstein 2024-06-04 18:03:02 +02:00
parent dfc979a8ef
commit f00f9f6c5c
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ proc parseMsgDigest*(
if not input.isSome() or input.get() == "":
return ok(none(waku_store_common.MessageDigest))
let decodedUrl = decodeUrl(input.get())
let decodedUrl = decodeUrl(input.get(), false)
let base64Decoded = base64.decode(Base64String(decodedUrl))
var messageDigest = waku_store_common.MessageDigest()
@ -87,7 +87,7 @@ proc parseMsgDigest*(
# and this result is URL-encoded.
proc toRestStringMessageDigest*(self: waku_store_common.MessageDigest): string =
let base64Encoded = base64.encode(self.data)
encodeUrl($base64Encoded)
encodeUrl($base64Encoded, false)
proc toWakuMessage*(message: StoreWakuMessage): WakuMessage =
WakuMessage(