Details
Description
$ curl -v localhost:8888/foo/bar/master/application.yml * Hostname was NOT found in DNS cache * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 8888 (#0) > GET /foo/bar/master/application.yml HTTP/1.1 > User-Agent: curl/7.35.0 > Host: localhost:8888 > Accept: */* > < HTTP/1.1 200 OK * Server Apache-Coyote/1.1 is not blacklisted < Server: Apache-Coyote/1.1 < X-Application-Context: configserver:8888 < Content-Disposition: attachment;filename=f.txt < Content-Type: text/plain;charset=UTF-8 < Content-Length: 120 < Date: Wed, 04 Nov 2015 14:48:09 GMT < ...
Users expect the filename would be "application.yml". It looks weird in the browser when you get a download of a file that has the wrong name.
Here's the endpoint:
@RequestMapping("/{name}/{profile}/{label}/{path:.*}")