File tree 1 file changed +19
-11
lines changed
src/main/java/org/owasp/benchmark/helpers
1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -66,24 +66,32 @@ public class Utils {
66
66
// A 'test' directory that target test files are created in so test cases can use them
67
67
public static final String TESTFILES_DIR = USERDIR + "testfiles" + File .separator ;
68
68
69
- // This constant is used by one of the sources for Benchmark 1.2, but not in 1.3+
69
+ // This constant is used by one of the sources for Benchmark 1.2, but not in 1.3+.
70
+ // It is used to filter out common headers. Whatever is left is considered the custom header
71
+ // name for header names test cases
70
72
public static final Set <String > commonHeaders =
71
73
new HashSet <>(
72
74
Arrays .asList (
73
- "host" ,
74
- "user-agent" ,
75
75
"accept" ,
76
- "accept-language" ,
77
76
"accept-encoding" ,
78
- "content-type" ,
79
- "x-requested-with" ,
80
- "referer" ,
81
- "content-length" ,
82
- "connection" ,
83
- "pragma" ,
77
+ "accept-language" ,
84
78
"cache-control" ,
79
+ "connection" ,
80
+ "content-length" ,
81
+ "content-type" ,
82
+ "cookie" ,
83
+ "host" ,
85
84
"origin" ,
86
- "cookie" ));
85
+ "pragma" ,
86
+ "referer" ,
87
+ "sec-ch-ua" ,
88
+ "sec-ch-ua-mobile" ,
89
+ "sec-ch-ua-platform" ,
90
+ "sec-fetch-dest" ,
91
+ "sec-fetch-mode" ,
92
+ "sec-fetch-site" ,
93
+ "user-agent" ,
94
+ "x-requested-with" ));
87
95
88
96
private static final DocumentBuilderFactory safeDocBuilderFactory =
89
97
DocumentBuilderFactory .newInstance ();
You can’t perform that action at this time.
0 commit comments