Fix _getMatchURL missing search and not sanitizing wildcards (#1727)
This commit is contained in:
parent
97d0a158d0
commit
c7e6c37095
@ -109,7 +109,7 @@ class RequestBuilder {
|
|||||||
|
|
||||||
_getMatchURL(url) {
|
_getMatchURL(url) {
|
||||||
const url2 = new URL(url);
|
const url2 = new URL(url);
|
||||||
return `${url2.protocol}//${url2.host}${url2.pathname}`;
|
return `${url2.protocol}//${url2.host}${url2.pathname}${url2.search}`.replace(/\*/g, '%2a');
|
||||||
}
|
}
|
||||||
|
|
||||||
_getOriginURL(url) {
|
_getOriginURL(url) {
|
||||||
|
Loading…
Reference in New Issue
Block a user