You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/05/27 19:14:56 UTC

incubator-ignite git commit: # ignite-899: content-type

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-456 febc3ff53 -> f8a5bf9a0


# ignite-899: content-type


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

Branch: refs/heads/ignite-456
Commit: f8a5bf9a03e79d3bbc708eda95183250a37e9ebd
Parents: febc3ff
Author: null <null>
Authored: Wed May 27 20:13:21 2015 +0300
Committer: null <null>
Committed: Wed May 27 20:13:21 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/f8a5bf9a/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 c598e17..40f2f64 100644
--- a/dev-tools/src/main/groovy/jiraslurp.groovy
+++ b/dev-tools/src/main/groovy/jiraslurp.groovy
@@ -307,7 +307,13 @@ def applyPatch = { jira, attachementURL ->
 
     println "Getting patch content."
 
-    patchFile << new URL("$ATTACHMENT_URL/$attachementURL/").getText('UTF-8')
+    def attachmentUrl = new URL("$ATTACHMENT_URL/$attachementURL/")
+
+    HttpURLConnection conn = (HttpURLConnection)attachmentUrl.openConnection();
+    conn.setRequestProperty("Content-Type", "text/x-patch;charset=utf-8");
+    conn.connect();
+
+    patchFile << conn.inputStream.text
 
     println "Got patch content."