File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
platform-api/src/main/java/com/flow/platform/api/controller Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1616
1717package com .flow .platform .api .controller ;
1818
19+ import com .flow .platform .api .config .AppConfig ;
1920import com .flow .platform .api .domain .envs .FlowEnvs ;
2021import com .flow .platform .api .domain .envs .FlowEnvs .YmlStatusValue ;
2122import com .flow .platform .api .domain .node .Flow ;
@@ -65,11 +66,11 @@ public class GitWebHookController extends NodeController {
6566 @ PostMapping (path = "/{root}" )
6667 public void onEventReceived (@ RequestHeader HttpHeaders headers , HttpServletRequest request ) {
6768 final String path = currentNodePath .get ();
68-
6969 Map <String , String > headerAsMap = headers .toSingleValueMap ();
70+
7071 String body ;
7172 try {
72- request .setCharacterEncoding ("utf8" );
73+ request .setCharacterEncoding (AppConfig . DEFAULT_CHARSET . name () );
7374 body = CharStreams .toString (request .getReader ());
7475 } catch (IOException e ) {
7576 throw new IllegalStatusException ("Cannot read raw body" );
You can’t perform that action at this time.
0 commit comments