replace method for deprecation and keep reference of requestTemplate
This commit is contained in:
@@ -173,11 +173,10 @@ final class TracingFeignClient implements Client {
|
||||
if (headers == null) {
|
||||
return delegate;
|
||||
}
|
||||
String method = delegate.method();
|
||||
String url = delegate.url();
|
||||
byte[] body = delegate.body();
|
||||
Charset charset = delegate.charset();
|
||||
return Request.create(method, url, headers, body, charset);
|
||||
return Request.create(delegate.httpMethod(), url, headers, body, charset, delegate.requestTemplate());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user