Skip to content

Commit

Permalink
fix for issue StripesFramework#74
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpablo-santos authored Aug 6, 2019
1 parent 16c93a7 commit 7bdfa65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public StripesRequestWrapper(HttpServletRequest request) throws StripesServletEx
if (contentType != null) {
if (isPost && contentType.startsWith("multipart/form-data")) {
constructMultipartWrapper(request);
} else if (contentType.toLowerCase().contains("json") && request.getContentLength() > 0) {
} else if (contentType.toLowerCase().contains("json") && (request.getContentLength() > 0 || "chunked".equals(request.getHeader("Transfer-Encoding")))) {
this.contentTypeRequestWrapper = new JsonContentTypeRequestWrapper();
try {
this.contentTypeRequestWrapper.build(request);
Expand Down

0 comments on commit 7bdfa65

Please sign in to comment.