Skip to content

Commit

Permalink
[FILEUPLOAD-228] #comment if Content-length header is not available, …
Browse files Browse the repository at this point in the history
…the contantLength() method must return request.getContentLength() #resolve

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/fileupload/trunk@1454899 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
simonetripodi committed Mar 10, 2013
1 parent c908c38 commit b50acb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public long contentLength() {
try {
size = Long.parseLong(request.getProperty(FileUploadBase.CONTENT_LENGTH));
} catch (NumberFormatException e) {
size = -1;
size = request.getContentLength();
}
return size;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public long contentLength() {
try {
size = Long.parseLong(request.getHeader(FileUploadBase.CONTENT_LENGTH));
} catch (NumberFormatException e) {
size = -1;
size = request.getContentLength();
}
return size;
}
Expand Down

0 comments on commit b50acb3

Please sign in to comment.