()
| 747 | |
| 748 | |
| 749 | final void receivedEndOfStream() throws Http2Exception { |
| 750 | if (isContentLengthInconsistent()) { |
| 751 | throw new StreamException( |
| 752 | sm.getString("stream.header.contentLength", getConnectionId(), getIdAsString(), |
| 753 | Long.valueOf(coyoteRequest.getContentLengthLong()), Long.valueOf(contentLengthReceived)), |
| 754 | Http2Error.PROTOCOL_ERROR, getIdAsInt()); |
| 755 | } |
| 756 | state.receivedEndOfStream(); |
| 757 | inputBuffer.notifyEof(); |
| 758 | } |
| 759 | |
| 760 | |
| 761 | final boolean isContentLengthInconsistent() { |
nothing calls this directly
no test coverage detected