Skip to content

Commit 8f99089

Browse files
Potential fix for pull request finding 'CodeQL / Disabled Netty HTTP header validation'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 93a0798 commit 8f99089

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/jmh/java/org/asynchttpclient/bench/Http2HeaderConversionBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class Http2HeaderConversionBenchmark {
5858
public void setup() {
5959
// Representative request header set built the way NettyRequestFactory builds it:
6060
// names are AsciiString constants from HttpHeaderNames.
61-
headers = new DefaultHttpHeaders(false);
61+
headers = new DefaultHttpHeaders();
6262
headers.set(HttpHeaderNames.HOST, "www.example.com");
6363
headers.set(HttpHeaderNames.USER_AGENT, "AHC/3.0");
6464
headers.set(HttpHeaderNames.ACCEPT, "*/*");

0 commit comments

Comments
 (0)