Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 663a6d2

Browse files
author
Dan Downs
committed
Make hasEntity() work with a closed stream.
1 parent de2c2f9 commit 663a6d2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

core-common/src/main/java/org/glassfish/jersey/message/internal/InboundMessageContext.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,6 @@ public void setWorkers(MessageBodyWorkers workers) {
741741
* {@code false} otherwise.
742742
*/
743743
public boolean hasEntity() {
744-
entityContent.ensureNotClosed();
745-
746744
try {
747745
return !entityContent.isEmpty();
748746
} catch (IllegalStateException ex) {

0 commit comments

Comments
 (0)