Commit d09104d
authored
Decode webhook request body as UTF-8 (#763)
When receiving a webhook request at bitbucket-scmsource-hook and
converting the HTTP request body to a string, always use UTF-8
even if the system default charset is different.
This is mainly relevant to a Jenkins controller running on Windows,
where the system charset might be Windows-1252, but Bitbucket Server
encodes the webhook request JSON in UTF-8.
Fix <https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/762>1 parent 8864519 commit d09104d
File tree
1 file changed
+2
-1
lines changed- src/main/java/com/cloudbees/jenkins/plugins/bitbucket/hooks
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
0 commit comments