mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Normalize request method names to lowercase in converter
Related issue: https://github.com/uBlockOrigin/uBOL-home/discussions/153
This commit is contained in:
parent
c8da231453
commit
b9956a8d18
1 changed files with 1 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ function parseNetworkFilter(parser) {
|
|||
break;
|
||||
case sfp.NODE_TYPE_NET_OPTION_NAME_METHOD: {
|
||||
const value = parser.getNetOptionValue(type);
|
||||
for ( const method of value.toUpperCase().split('|') ) {
|
||||
for ( const method of value.toLowerCase().split('|') ) {
|
||||
const not = method.charCodeAt(0) === 0x7E /* '~' */;
|
||||
if ( not ) {
|
||||
excludedRequestMethods.add(method.slice(1));
|
||||
|
|
|
|||
Loading…
Reference in a new issue