Skip to content

Commit 9bdedf1

Browse files
committed
return null on empty echo interceptor body
1 parent ab5d7ce commit 9bdedf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/output/java/src/test/java/com/algolia/EchoInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private String processResponseBody(Request request) {
6666
final Request copy = request.newBuilder().build();
6767
final Buffer buffer = new Buffer();
6868
if (copy.body() == null) {
69-
return "";
69+
return null;
7070
}
7171
copy.body().writeTo(buffer);
7272
return buffer.readUtf8();

0 commit comments

Comments
 (0)