Skip to content

Commit

Permalink
Adding header 'X-Atlassian-Token: no-check' to be compatible with Sta…
Browse files Browse the repository at this point in the history
…sh 4.0 #12
  • Loading branch information
tomasbjerre committed Sep 14, 2015
1 parent 61a3584 commit 36550ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Changelog of Violation Comments to Stash Plugin

# 1.9
* Adding header "X-Atlassian-Token: no-check" to be compatible with Stash 4.0 #12

# 1.8
* Accepting cookies sent from Stash server. To prevent infinite redirect if Stash requires authentication.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public String invokeUrl(ViolationsToStashConfig config, String url, Method metho
conn.setRequestMethod(method.name());
String charset = "UTF-8";
conn.setDoOutput(true);
conn.setRequestProperty("X-Atlassian-Token", "no-check");
conn.setRequestProperty("Content-Type", "application/json");
conn.setRequestProperty("Accept", "application/json");
conn.connect();
Expand Down

0 comments on commit 36550ad

Please sign in to comment.