ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: # ignite-899: content disposition
Date Wed, 27 May 2015 17:30:14 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-456 f8a5bf9a0 -> f19412be6


# ignite-899: content disposition


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/f19412be
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/f19412be
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/f19412be

Branch: refs/heads/ignite-456
Commit: f19412be6789eb369be127aca5bd024d880a70a2
Parents: f8a5bf9
Author: null <null>
Authored: Wed May 27 20:30:08 2015 +0300
Committer: null <null>
Committed: Wed May 27 20:30:08 2015 +0300

----------------------------------------------------------------------
 dev-tools/src/main/groovy/jiraslurp.groovy | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/f19412be/dev-tools/src/main/groovy/jiraslurp.groovy
----------------------------------------------------------------------
diff --git a/dev-tools/src/main/groovy/jiraslurp.groovy b/dev-tools/src/main/groovy/jiraslurp.groovy
index 40f2f64..a285165 100644
--- a/dev-tools/src/main/groovy/jiraslurp.groovy
+++ b/dev-tools/src/main/groovy/jiraslurp.groovy
@@ -310,7 +310,9 @@ def applyPatch = { jira, attachementURL ->
     def attachmentUrl = new URL("$ATTACHMENT_URL/$attachementURL/")
 
     HttpURLConnection conn = (HttpURLConnection)attachmentUrl.openConnection();
+    conn.setRequestProperty("Content-Disposition", "inline; filename*=utf-8''ignite-37.patch;");
     conn.setRequestProperty("Content-Type", "text/x-patch;charset=utf-8");
+    conn.setRequestProperty("X-Content-Type-Options", "nosniff");
     conn.connect();
 
     patchFile << conn.inputStream.text


Mime
View raw message