Fix DelegatingServletInputStream#available

Ensure that the method returns the correct number of bytes that can be
read without blocking

Issue: #SPR-16416
This commit is contained in:
Ketan Padegaonkar
2018-01-25 21:16:05 +05:30
committed by Juergen Hoeller
parent 165ca12e6d
commit a0c9fdba12

View File

@@ -87,4 +87,9 @@ public class DelegatingServletInputStream extends ServletInputStream {
throw new UnsupportedOperationException();
}
@Override
public int available() throws IOException {
return this.sourceStream.available();
}
}