We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a51f5d2 + 1ed09d1 commit 8cdc68dCopy full SHA for 8cdc68d
src/router.ts
@@ -297,7 +297,8 @@ export class OpenAPIRouter<D extends Document = Document> {
297
const cookies = cookie.parse(_.flatten([cookieHeader]).join('; '));
298
299
// parse query
300
- const queryString = typeof req.query === 'string' ? req.query.replace('?', '') : req.path.split('?')[1];
+ const qs = typeof req.query === 'object' ? new URLSearchParams(req.query).toString() : req.query;
301
+ const queryString = typeof qs === 'string' ? qs.replace('?', '') : req.path.split('?')[1];
302
const query = typeof req.query === 'object' ? _.cloneDeep(req.query) : parseQuery(queryString);
303
304
// normalize
0 commit comments