[mv3] Normalize request method names to lowercase in converter

Related issue:
https://github.com/uBlockOrigin/uBOL-home/discussions/153
This commit is contained in:
Raymond Hill 2025-08-09 08:34:30 -04:00
parent c8da231453
commit b9956a8d18
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

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