Skip to content

Commit

Permalink
do not use 'deflate' in unit test. It is not supported for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienbuss committed Nov 28, 2023
1 parent 79673ab commit 5be16d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hc5/src/test/java/feign/hc5/AsyncApacheHttp5ClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public void headerMapWithHeaderAnnotations() throws Exception {
api.headerMapWithHeaderAnnotations(headerMap);

// header map should be additive for headers provided by annotations
assertThat(server.takeRequest()).hasHeaders(entry("Content-Encoding", Arrays.asList("deflate")),
assertThat(server.takeRequest()).hasHeaders(entry("Content-Encoding", Arrays.asList("gzip")),
entry("Custom-Header", Arrays.asList("fooValue")));

server.enqueue(new MockResponse());
Expand All @@ -256,7 +256,7 @@ public void headerMapWithHeaderAnnotations() throws Exception {
* valid to have more than one value for a header.
*/
assertThat(server.takeRequest()).hasHeaders(
entry("Content-Encoding", Arrays.asList("deflate", "overrideFromMap")),
entry("Content-Encoding", Arrays.asList("gzip", "overrideFromMap")),
entry("Custom-Header", Arrays.asList("fooValue")));

checkCFCompletedSoon(cf);
Expand Down Expand Up @@ -880,7 +880,7 @@ CompletableFuture<Void> expandArray(@Param(value = "clock",
CompletableFuture<Void> headerMap(@HeaderMap Map<String, Object> headerMap);

@RequestLine("GET /")
@Headers("Content-Encoding: deflate")
@Headers("Content-Encoding: gzip")
CompletableFuture<Void> headerMapWithHeaderAnnotations(@HeaderMap Map<String, Object> headerMap);

@RequestLine("GET /")
Expand Down

0 comments on commit 5be16d8

Please sign in to comment.