Closed
Description
Mauro Molinari opened SPR-15191 and commented
When reading contents with RestTemplate:
restTemplate.getForObject(url, Resource.class, parts);
the returned Resource
does not specify any file name, even if the HTTP response received from the remote server has a proper Content-Disposition
header with file name specified.
It would save some work if ResourceHttpMessageConverter
read that header and properly enhanced the returned Resource
object.
Affects: 4.2.8, 4.3.1
Issue Links:
- Introduce HttpHeaders getContentDisposition() and setContentDisposition() [SPR-14408] #18979 Introduce HttpHeaders getContentDisposition() and setContentDisposition()
- Disable streaming when reading to Resources in RestTemplate [SPR-14882] #19448 Disable streaming when reading to Resources in RestTemplate
Referenced from: commits 768802f