Skip to content

Commit

Permalink
fixed RequestUtils bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brant Hwang committed Aug 2, 2017
1 parent 7ffb36b commit 50b7790
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ax-boot-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<dependency>
<groupId>com.chequer.axboot</groupId>
<artifactId>ax-boot-core</artifactId>
<version>2.1.37</version>
<version>2.1.38</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion ax-boot-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<artifactId>ax-boot-core</artifactId>
<name>AX Boot Core</name>
<description>AX Boot Core</description>
<version>2.1.37</version>
<version>2.1.38</version>
<url>http://www.axboot.com</url>
<packaging>jar</packaging>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ public String getRequestBodyJson(HttpServletRequest request) {
String body = getRequestBody();

if (StringUtils.isNotEmpty(body)) {
return JsonUtils.toPrettyJson(JsonUtils.fromJson(getRequestBody()));
if(body.startsWith("{") && body.endsWith("}")) {
return JsonUtils.toPrettyJson(JsonUtils.fromJson(getRequestBody()));
}
return body;
}
return "";
}
Expand Down
2 changes: 1 addition & 1 deletion ax-boot-initialzr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<dependency>
<groupId>com.chequer.axboot</groupId>
<artifactId>ax-boot-core</artifactId>
<version>2.1.37</version>
<version>2.1.38</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void generate(ProjectGenerateRequest projectGenerateRequest, HttpServletR
values.put("description", description);
values.put("groupId", groupId);
values.put("sessionCookie", uuid);
values.put("axbootCoreVersion", "2.1.37");
values.put("axbootCoreVersion", "2.1.38");

PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();

Expand Down

0 comments on commit 50b7790

Please sign in to comment.