replace method for deprecation and keep reference of requestTemplate

This commit is contained in:
张哈希
2020-04-30 01:58:59 +00:00
committed by Adrian Cole
parent eac2733c8c
commit 343d84346f

View File

@@ -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());
}
}