Skip to content

Commit 5801665

Browse files
committed
do not use 'deflate' in unit test. It is not supported for requests
1 parent 79673ab commit 5801665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hc5/src/test/java/feign/hc5/AsyncApacheHttp5ClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public void headerMapWithHeaderAnnotations() throws Exception {
243243
api.headerMapWithHeaderAnnotations(headerMap);
244244

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

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

262262
checkCFCompletedSoon(cf);

0 commit comments

Comments
 (0)