Changeset 289


Ignore:
Timestamp:
03/26/10 09:06:36 (14 years ago)
Author:
patdui
Message:
  • fixed file name(put quotes around it) in download
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rest/ComponentRegistryRestService.java

    r262 r289  
    182182    private Response createDownloadResponse(String result, String fileName) {
    183183        //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+"\"")
    185185                .entity(result).build();
    186186        return response;
Note: See TracChangeset for help on using the changeset viewer.