mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
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:
committed by
Juergen Hoeller
parent
165ca12e6d
commit
a0c9fdba12
+5
@@ -87,4 +87,9 @@ public class DelegatingServletInputStream extends ServletInputStream {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int available() throws IOException {
|
||||
return this.sourceStream.available();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user