File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -352,21 +352,22 @@ const HTTPSRules = {
352352 // newuri attribute and an applied_ruleset attribute (or null if there's
353353 // no rewrite).
354354 var i = 0 , userpass_present = false ;
355- var blob = { } ;
356355 var uri = input_uri ;
356+ var blob = { } ;
357357 blob . newuri = null ;
358358
359359 // Rulesets shouldn't try to parse usernames and passwords. If we find
360360 // those, apply the ruleset without them and then add them back.
361+ // When .userPass is absent, sometimes it is false and sometimes trying
362+ // to read it raises an exception (probably depending on the URI type).
361363 try {
362364 if ( input_uri . userPass ) {
363365 uri = input_uri . clone ( )
364366 userpass_present = true ;
365367 uri . userPass = null ;
366- } else {
367- this . log ( WARN , input_uri . spec + ".userPass is false, there is no API consistency" ) ;
368- }
368+ }
369369 } catch ( e ) { }
370+
370371 // Get the list of rulesets that target this host
371372 try {
372373 var rs = this . potentiallyApplicableRulesets ( uri . host ) ;
You can’t perform that action at this time.
0 commit comments