Skip to content

Commit

Permalink
Add HEAD to test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
gaul committed Mar 7, 2021
1 parent ef254f5 commit 94f19b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void testCorsPreflight() throws Exception {
HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS)).isTrue();
assertThat(response.getFirstHeader(
HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS).getValue())
.isEqualTo("GET, PUT, POST");
.isEqualTo("GET, HEAD, PUT, POST");
assertThat(response.containsHeader(
HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS)).isTrue();
assertThat(response.getFirstHeader(
Expand All @@ -181,7 +181,7 @@ public void testCorsActual() throws Exception {
HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS)).isTrue();
assertThat(response.getFirstHeader(
HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS).getValue())
.isEqualTo("GET, PUT, POST");
.isEqualTo("GET, HEAD, PUT, POST");
}

@Test
Expand Down

0 comments on commit 94f19b0

Please sign in to comment.