Skip to content

Commit

Permalink
minor name change
Browse files Browse the repository at this point in the history
  • Loading branch information
perwendel committed Aug 15, 2015
1 parent 2982ac5 commit 1b46fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/spark/Request.java
Expand Up @@ -231,12 +231,12 @@ public String body() {

public byte[] bodyAsBytes() {
if (bodyAsBytes == null) {
readBody();
readBodyAsBytes();
}
return bodyAsBytes;
}

private void readBody() {
private void readBodyAsBytes() {
try {
bodyAsBytes = IOUtils.toByteArray(servletRequest.getInputStream());
} catch (Exception e) {
Expand Down

0 comments on commit 1b46fa1

Please sign in to comment.