Changeset 289
- Timestamp:
- 03/26/10 09:06:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rest/ComponentRegistryRestService.java
r262 r289 182 182 private Response createDownloadResponse(String result, String fileName) { 183 183 //Making response so it triggers browsers native save as dialog. 184 Response response = Response.ok().type("application/x-download").header("Content-Disposition", "attachment; filename= " + fileName)184 Response response = Response.ok().type("application/x-download").header("Content-Disposition", "attachment; filename=\"" + fileName+"\"") 185 185 .entity(result).build(); 186 186 return response;
Note: See TracChangeset
for help on using the changeset viewer.