Skip to content

Commit b9956a8

Browse files
committed
[mv3] Normalize request method names to lowercase in converter
Related issue: uBlockOrigin/uBOL-home#153
1 parent c8da231 commit b9956a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/mv3/extension/js/ubo-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function parseNetworkFilter(parser) {
314314
break;
315315
case sfp.NODE_TYPE_NET_OPTION_NAME_METHOD: {
316316
const value = parser.getNetOptionValue(type);
317-
for ( const method of value.toUpperCase().split('|') ) {
317+
for ( const method of value.toLowerCase().split('|') ) {
318318
const not = method.charCodeAt(0) === 0x7E /* '~' */;
319319
if ( not ) {
320320
excludedRequestMethods.add(method.slice(1));

0 commit comments

Comments
 (0)