File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed
Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -916,11 +916,7 @@ mod tests {
916916
917917 let result = http. check_dot_false_positives ( & opts, false ) . await ;
918918 assert ! ( result. is_err( ) ) ;
919- assert ! (
920- result
921- . unwrap_err( )
922- . contains( "aborting due to likely false positives" )
923- ) ;
919+ assert ! ( result. unwrap_err( ) . contains( "likely false positives" ) ) ;
924920 }
925921
926922 // Tests for check_false_positives
@@ -997,11 +993,7 @@ mod tests {
997993
998994 let result = http. check_false_positives ( & opts, false ) . await ;
999995 assert ! ( result. is_err( ) ) ;
1000- assert ! (
1001- result
1002- . unwrap_err( )
1003- . contains( "aborting due to likely false positives" )
1004- ) ;
996+ assert ! ( result. unwrap_err( ) . contains( "likely false positives" ) ) ;
1005997 }
1006998
1007999 #[ tokio:: test]
Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ impl HTTP {
474474 ) ) ;
475475 } else {
476476 return Err ( format ! (
477- "aborting due to likely false positives for {}: validates success condition for a non existent page: {:?}" ,
477+ "likely false positives for {}: validates success condition for a non existent page: {:?}" ,
478478 target, success
479479 ) ) ;
480480 }
@@ -513,7 +513,7 @@ impl HTTP {
513513 ) ) ;
514514 } else {
515515 return Err ( format ! (
516- "aborting due to likely false positives for {}: validates success condition for a non existent page starting with a dot: {:?}" ,
516+ "likely false positives for {}: validates success condition for a non existent page starting with a dot: {:?}" ,
517517 target, success
518518 ) ) ;
519519 }
@@ -942,7 +942,11 @@ impl Plugin for HTTP {
942942 . map_err ( |e| e. to_string ( ) ) ?
943943 } ;
944944
945- self . validate_success_condition ( opts) . await
945+ // do not perform check if we expect authentication
946+ match self . strategy {
947+ Strategy :: BasicAuth | Strategy :: NLTMv1 | Strategy :: NLTMv2 => Ok ( ( ) ) ,
948+ _ => self . validate_success_condition ( opts) . await ,
949+ }
946950 }
947951
948952 async fn attempt (
You can’t perform that action at this time.
0 commit comments