This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/System.Net.Http/src/System/Net Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,16 @@ public int MaxAutomaticRedirections
121
121
122
122
public long MaxRequestContentBufferSize
123
123
{
124
- get { return _winHttpHandler . MaxRequestContentBufferSize ; }
125
- set { _winHttpHandler . MaxRequestContentBufferSize = value ; }
124
+ // This property has been deprecated. In the .NET Desktop it was only used when the handler needed to automatically
125
+ // buffer the request content. That only happened if neither 'Content-Length' nor 'Transfer-Encoding: chunked'
126
+ // request headers were specified. So, the handler thus needed to buffer in the request content to determine its
127
+ // length and then would choose 'Content-Length' semantics when POST'ing. In CoreCLR and .NETNative, the handler
128
+ // will resolve the ambiguity by always choosing 'Transfer-Encoding: chunked'. The handler will never automatically
129
+ // buffer in the request content.
130
+ get { return 0 ; }
131
+
132
+ // TODO: Add message/link to exception explaining the deprecation.
133
+ set { throw new PlatformNotSupportedException ( ) ; }
126
134
}
127
135
128
136
#endregion Properties
You can’t perform that action at this time.
0 commit comments