Skip to content

Commit

Permalink
decode protocol from path component
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Sep 19, 2024
1 parent 295be4a commit fc33650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit fc33650

Please sign in to comment.