Skip to content

Commit

Permalink
Merge f00f9f6 into dfc979a
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer authored Jun 4, 2024
2 parents dfc979a + f00f9f6 commit 12b7732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waku/waku_api/rest/legacy_store/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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(
Expand Down

0 comments on commit 12b7732

Please sign in to comment.