Commit 1a321358 authored by 黎博's avatar 黎博

update

parent c0fb9672
...@@ -17,10 +17,9 @@ public class JiraWebhookController { ...@@ -17,10 +17,9 @@ public class JiraWebhookController {
@PostMapping("/webhook") @PostMapping("/webhook")
public void jiraWebhook(HttpServletRequest request) { public void jiraWebhook(HttpServletRequest request) {
try { try {
BufferedReader br = null; BufferedReader br = request.getReader();
StringBuilder jiraData = new StringBuilder(); StringBuilder jiraData = new StringBuilder();
String str = ""; String str = "";
br = request.getReader();
while((str = br.readLine()) != null){ while((str = br.readLine()) != null){
jiraData.append(str); jiraData.append(str);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment