Skip to content

Commit

Permalink
shorten adversarial ACRH in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jub0bs committed Mar 29, 2024
1 parent c773b56 commit d2f9bfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions middleware_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func BenchmarkMiddleware(b *testing.B) {
reqHeaders: Headers{
headerOrigin: "https://example.com",
headerACRM: http.MethodGet,
headerACRH: strings.Repeat("a", http.DefaultMaxHeaderBytes),
headerACRH: strings.Repeat("a,", 1024),
},
},
},
Expand Down Expand Up @@ -219,7 +219,7 @@ func BenchmarkMiddleware(b *testing.B) {
reqHeaders: Headers{
headerOrigin: "https://example.com",
headerACRM: http.MethodGet,
headerACRH: strings.Repeat("a", http.DefaultMaxHeaderBytes),
headerACRH: strings.Repeat("a,", 1024),
},
}, {
desc: "actual",
Expand Down Expand Up @@ -274,7 +274,7 @@ func BenchmarkMiddleware(b *testing.B) {
reqHeaders: Headers{
headerOrigin: "https://example.com",
headerACRM: http.MethodGet,
headerACRH: strings.Repeat("a", http.DefaultMaxHeaderBytes),
headerACRH: strings.Repeat("a,", 1024),
},
}, {
desc: "actual",
Expand Down

0 comments on commit d2f9bfb

Please sign in to comment.