public RestClient():base()
{
//The maximum error response must be large because missing server hashes are return as a Conflivt (409) error response
- HttpWebRequest.DefaultMaximumErrorResponseLength = 16*1024*1024;
+ //Any value above 2^21-1 will result in an empty response.
+ //-1 essentially ignores the maximum length
+ HttpWebRequest.DefaultMaximumErrorResponseLength = -1;
}
throw new ArgumentNullException("other");
Contract.EndContractBlock();
- HttpWebRequest.DefaultMaximumErrorResponseLength = 16 * 1024 * 1024;
+ //The maximum error response must be large because missing server hashes are return as a Conflivt (409) error response
+ //Any value above 2^21-1 will result in an empty response.
+ //-1 essentially ignores the maximum length
+ HttpWebRequest.DefaultMaximumErrorResponseLength = -1;
CopyHeaders(other);
Timeout = other.Timeout;