Extension point in HttpMessageConverterExtractor
This commit is contained in:
parent
c7c3e5585b
commit
3ede3a4b34
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -120,7 +120,7 @@ public class HttpMessageConverterExtractor<T> implements ResponseExtractor<T> {
|
|||
"for response type [" + this.responseType + "] and content type [" + contentType + "]");
|
||||
}
|
||||
|
||||
private MediaType getContentType(ClientHttpResponse response) {
|
||||
protected MediaType getContentType(ClientHttpResponse response) {
|
||||
MediaType contentType = response.getHeaders().getContentType();
|
||||
if (contentType == null) {
|
||||
if (logger.isTraceEnabled()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue