mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-17 22:05:31 +00:00
Update UpgradeInputStream.java
This commit is contained in:
parent
4956aed7ce
commit
dccd8469ce
@ -281,7 +281,7 @@ class ExchangeImpl {
|
||||
o.setWrappedStream(new UndefLengthOutputStream(this, ros));
|
||||
close = true;
|
||||
} else if (upgrade && rCode == 101) {
|
||||
o.setWrappedStream (new UpgradeOutputStream (this, ros));
|
||||
o.setWrappedStream (new UpgradeOutputStream(this, ros));
|
||||
close = true;
|
||||
} else {
|
||||
rspHdrs.set("Transfer-encoding", "chunked");
|
||||
|
||||
@ -62,7 +62,9 @@ class UpgradeInputStream extends LeftOverInputStream {
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
closed = true;
|
||||
t.getServerImpl().requestCompleted(t.getConnection());
|
||||
if(t.getConnection().state == State.REQUEST) {
|
||||
t.getServerImpl().requestCompleted(t.getConnection());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user