projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[System.Net.Http] Updates range check from 3741d16503a973a99c724bdab9a255a5f07a3637
[mono.git]
/
mcs
/
class
/
System.Net.Http
/
System.Net.Http
/
HttpClient.cs
diff --git
a/mcs/class/System.Net.Http/System.Net.Http/HttpClient.cs
b/mcs/class/System.Net.Http/System.Net.Http/HttpClient.cs
index baa6dd9f0d26cc6a219c5187164013043009be9d..3880d418dca1fd5c6821f258429359df1862da73 100644
(file)
--- a/
mcs/class/System.Net.Http/System.Net.Http/HttpClient.cs
+++ b/
mcs/class/System.Net.Http/System.Net.Http/HttpClient.cs
@@
-96,7
+96,7
@@
namespace System.Net.Http
return timeout;
}
set {
return timeout;
}
set {
- if (value != System.Threading.Timeout.InfiniteTimeSpan &&
value < TimeSpan.Zero
)
+ if (value != System.Threading.Timeout.InfiniteTimeSpan &&
(value <= TimeSpan.Zero || value.TotalMilliseconds > int.MaxValue)
)
throw new ArgumentOutOfRangeException ();
timeout = value;
throw new ArgumentOutOfRangeException ();
timeout = value;