Skip to content

Commit 8c36594

Browse files
committed
Minor cleanup to GrizzlyResponse.
1 parent 6ca427d commit 8c36594

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

providers/grizzly/src/main/java/com/ning/http/client/providers/grizzly/GrizzlyResponse.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,18 @@ public String getResponseBodyExcerpt(int maxLength) throws IOException {
136136
*/
137137
public String getResponseBody() throws IOException {
138138

139-
return getResponseBody(Charsets.DEFAULT_CHARACTER_ENCODING);
139+
return getResponseBody(null);
140140

141141
}
142142

143+
/**
144+
* @return the response body as a Grizzly {@link Buffer}.
145+
*/
146+
@SuppressWarnings("UnusedDeclaration")
147+
public Buffer getResponseBodyAsBuffer() {
148+
return responseBody;
149+
}
150+
143151
/**
144152
* {@inheritDoc}
145153
*/

0 commit comments

Comments
 (0)