Skip to content

Commit

Permalink
Merge pull request #37 from jembi/TB-401
Browse files Browse the repository at this point in the history
TB-401 add indices false param to the qs.stringify function.
  • Loading branch information
drizzentic authored Mar 6, 2024
2 parents df0aa93 + b94bf9a commit 7bd980a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/middlewares/fhir-datastore-access-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const createFhirAccessProxy = (): RequestHandler => {
logProvider,
pathRewrite(_path, req) {
// Re-compute the path, since http-proxy-middleware relies on req.originalUrl
return `${req.path}?${qs.stringify(req.query)}`;
const queryString = qs.stringify(req.query, { indices: false });
return `${req.path}?${queryString}`;
},
onError(err, _req, _res) {
logger.error(err);
Expand Down

0 comments on commit 7bd980a

Please sign in to comment.