From fc33650f1a1ea04144ede99efb4a7cda4241549e Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Thu, 19 Sep 2024 13:36:37 -0400 Subject: [PATCH] decode protocol from path component --- src/http-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http-api.ts b/src/http-api.ts index bd26fcb..e2a1886 100644 --- a/src/http-api.ts +++ b/src/http-api.ts @@ -158,7 +158,7 @@ export class HttpApi { lastLevelObject[lastKey] = req.query[param]; } - queryOptions.filter.protocol = req.params.protocol; + queryOptions.filter.protocol = decodeURIComponent(req.params.protocol); queryOptions.filter.protocolPath = req.params[0].replace(leadTailSlashRegex, ''); const query = await RecordsQuery.create({