Skip to content

Commit

Permalink
Merge pull request #827 from zhou-hao/patch-1
Browse files Browse the repository at this point in the history
Add support for method return ByteBuf
  • Loading branch information
artem-v authored Oct 1, 2022
2 parents f6b9683 + 50b1efb commit 65c6f84
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ public static ServiceMessage decodeData(ServiceMessage message, Type dataType)
throws MessageCodecException {
if (dataType == null
|| !message.hasData(ByteBuf.class)
|| ((ByteBuf) message.data()).readableBytes() == 0) {
|| ((ByteBuf) message.data()).readableBytes() == 0
|| ByteBuf.class == dataType) {
return message;
}

Expand Down

0 comments on commit 65c6f84

Please sign in to comment.