Skip to content

Commit df2f9dc

Browse files
committed
Merge pull request #853 from stevenolen/ohmage-2.16
per RFC2231 filename in download should be encapsulated via quotes. clos...
2 parents 8872f59 + a84fd60 commit df2f9dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/ohmage/request/document/DocumentReadContentsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResp
197197
// Set the type and force the browser to download it as the
198198
// last step before beginning to stream the response.
199199
httpResponse.setContentType("ohmage/document");
200-
httpResponse.setHeader("Content-Disposition", "attachment; filename=" + documentName);
200+
httpResponse.setHeader("Content-Disposition", "attachment; filename=\"" + documentName + "\"");
201201

202202
// If available, set the token.
203203
if(getUser() != null) {

0 commit comments

Comments
 (0)