Extension point in HttpMessageConverterExtractor

master
Rossen Stoyanchev 6 years ago
parent c7c3e5585b
commit 3ede3a4b34
  1. 4
      spring-web/src/main/java/org/springframework/web/client/HttpMessageConverterExtractor.java

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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 + "]"); "for response type [" + this.responseType + "] and content type [" + contentType + "]");
} }
private MediaType getContentType(ClientHttpResponse response) { protected MediaType getContentType(ClientHttpResponse response) {
MediaType contentType = response.getHeaders().getContentType(); MediaType contentType = response.getHeaders().getContentType();
if (contentType == null) { if (contentType == null) {
if (logger.isTraceEnabled()) { if (logger.isTraceEnabled()) {

Loading…
Cancel
Save