Imported Upstream version 5.16.0.100

Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-08-07 15:19:03 +00:00
parent 0a9828183b
commit 7d7f676260
4419 changed files with 170950 additions and 90273 deletions

View File

@ -50,8 +50,10 @@ namespace System.Net
public WebRequestStream (WebConnection connection, WebOperation operation,
Stream stream, WebConnectionTunnel tunnel)
: base (connection, operation, stream)
: base (connection, operation)
{
InnerStream = stream;
allowBuffering = operation.Request.InternalAllowBuffering;
sendChunked = operation.Request.SendChunked && operation.WriteBuffer == null;
if (!sendChunked && allowBuffering && operation.WriteBuffer == null)
@ -66,14 +68,12 @@ namespace System.Net
#endif
}
public bool KeepAlive {
internal Stream InnerStream {
get;
}
public override long Length {
get {
throw new NotSupportedException ();
}
public bool KeepAlive {
get;
}
public override bool CanRead => false;