Skip to content

Commit

Permalink
Reverse body logic
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Jul 21, 2023
1 parent afb140e commit 52d0c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/java_http/lib/src/java_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class JavaClient extends BaseClient {
}

final contentLength = int.parse(contentLengthHeader);
if (bodyLength > contentLength) {
if (bodyLength < contentLength) {
throw ClientException('Unexpected end of body', request.url);
}

Expand Down

0 comments on commit 52d0c6e

Please sign in to comment.