parent
8922da3af6
commit
70412a9d0a
|
@ -556,7 +556,7 @@ public class HttpHeaders implements MultiValueMap<String, String>, Serializable
|
|||
*/
|
||||
public MediaType getContentType() {
|
||||
String value = getFirst(CONTENT_TYPE);
|
||||
return (value != null ? MediaType.parseMediaType(value) : null);
|
||||
return (StringUtils.hasLength(value) ? MediaType.parseMediaType(value) : null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue