Skip to content

Commit bf4f4cf

Browse files
committed
Merge pull request #855 from ohmage/ohmage-2.16
fixes #853
2 parents fc52616 + df2f9dc commit bf4f4cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

db/sql/base/ohmage-ddl.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- MySQL DDL statements for the ohmage database
22

3-
CREATE DATABASE ohmage CHARACTER SET utf8 COLLATE utf8_general_ci;
3+
CREATE DATABASE IF NOT EXISTS ohmage CHARACTER SET utf8 COLLATE utf8_general_ci;
44
USE ohmage;
55

66
-- --------------------------------------------------------------------

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)