Implemented copy of the request tag that was mistakenly missing. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
944ce6354f
commit
e9262ce26c
|
@ -448,7 +448,8 @@ public class HttpClient extends ContainerLifeCycle
|
|||
.body(oldRequest.getBody())
|
||||
.idleTimeout(oldRequest.getIdleTimeout(), TimeUnit.MILLISECONDS)
|
||||
.timeout(oldRequest.getTimeout(), TimeUnit.MILLISECONDS)
|
||||
.followRedirects(oldRequest.isFollowRedirects());
|
||||
.followRedirects(oldRequest.isFollowRedirects())
|
||||
.tag(oldRequest.getTag());
|
||||
for (HttpField field : oldRequest.getHeaders())
|
||||
{
|
||||
HttpHeader header = field.getHeader();
|
||||
|
|
|
@ -1618,6 +1618,7 @@ public class HttpClientTest extends AbstractHttpClientServerTest
|
|||
.timeout(123231, TimeUnit.SECONDS)
|
||||
.idleTimeout(232342, TimeUnit.SECONDS)
|
||||
.followRedirects(false)
|
||||
.tag("tag")
|
||||
.headers(headers -> headers.put(HttpHeader.ACCEPT, "application/json"))
|
||||
.headers(headers -> headers.put("X-Some-Other-Custom-Header", "some-other-value")));
|
||||
|
||||
|
@ -1969,6 +1970,7 @@ public class HttpClientTest extends AbstractHttpClientServerTest
|
|||
assertEquals(original.getIdleTimeout(), copy.getIdleTimeout());
|
||||
assertEquals(original.getTimeout(), copy.getTimeout());
|
||||
assertEquals(original.isFollowRedirects(), copy.isFollowRedirects());
|
||||
assertEquals(original.getTag(), copy.getTag());
|
||||
assertEquals(original.getHeaders(), copy.getHeaders());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue