Fix _getMatchURL missing search and not sanitizing wildcards (#1727)

This commit is contained in:
toasted-nutbread 2021-06-03 19:52:00 -04:00 committed by GitHub
parent 97d0a158d0
commit c7e6c37095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {