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.
1 parent 612d639 commit 5016e55Copy full SHA for 5016e55
src/model/rules/rule-creation.ts
@@ -129,11 +129,10 @@ function buildRequestMatchers(request: HtkRequest) {
129
const urlParts = request.parsedUrl.toString().split('?');
130
const path = urlParts[0];
131
132
- const hasQuery = request.url.includes('?'); // Not just with parameters, but also trailing '?'
133
- const query = urlParts.slice(1).join('?');
+ const hasQuery = urlParts.length > 1; // Not just with parameters, but also trailing '?'
134
const queryMatcher = hasQuery
135
? [new matchers.QueryMatcher(
136
- querystring.parse(query) as ({ [key: string]: string | string[] })
+ querystring.parse(urlParts.slice(1).join('?')) as ({ [key: string]: string | string[] })
137
)]
138
: [];
139
0 commit comments