fix: variable type not used. (#2264)

This commit is contained in:
Alex Lin
2021-10-07 07:28:53 +08:00
committed by GitHub
parent 9b3486e5fa
commit 61c9352856

View File

@@ -338,7 +338,7 @@ public class ProxyExchange<T> {
if (type instanceof TypeVariable || type instanceof WildcardType) {
type = Object.class;
}
return rest.exchange(requestEntity, ParameterizedTypeReference.forType(responseType));
return rest.exchange(requestEntity, ParameterizedTypeReference.forType(type));
}
private BodyBuilder headers(BodyBuilder builder) {