Skip to content

Commit

Permalink
Fix #12356 Do not send keep-alive when not persistent
Browse files Browse the repository at this point in the history
updates from test failures
  • Loading branch information
gregw committed Oct 14, 2024
1 parent 4192d73 commit b785ddc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1464,8 +1464,7 @@ public void testConnectionClose() throws Exception
200, TimeUnit.MILLISECONDS
);
assertThat(response, containsString("200"));
assertThat(response, containsString("Connection: TE"));
assertThat(response, containsString("Connection: Other"));
assertThat(response, containsString("Connection: TE,Other"));

response = _connector.getResponse(
"GET / HTTP/1.1\n" +
Expand All @@ -1474,7 +1473,7 @@ public void testConnectionClose() throws Exception
"\n"
);
assertThat(response, containsString("200 OK"));
assertThat(response, containsString("Connection: close"));
assertThat(response, containsString("Connection: TE,Other,close"));
assertThat(response, containsString("Hello World"));
}

Expand Down

0 comments on commit b785ddc

Please sign in to comment.