Skip to content

Commit

Permalink
Merge pull request #1035 from eclipse-passage/1034
Browse files Browse the repository at this point in the history
1034 more information for denial responses
  • Loading branch information
eparovyshnaya authored Feb 14, 2022
2 parents a811f05 + c9570c9 commit 61e5d6e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ public ResultsTransfered(Connection connection) throws Exception {
code = connection.code();
message = connection.message();
contentType = connection.contentType();
data = connection.payload(); // should be eager
successful = connection.successful();
data = successful //
? connection.payload() // should be eager
: new byte[0];
}

public ContentType contentType() {
Expand Down

0 comments on commit 61e5d6e

Please sign in to comment.