aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Net/HttpRequestOptions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Common/Net/HttpRequestOptions.cs')
-rw-r--r--MediaBrowser.Common/Net/HttpRequestOptions.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Net/HttpRequestOptions.cs b/MediaBrowser.Common/Net/HttpRequestOptions.cs
index 09bf6e232..81f1d70d3 100644
--- a/MediaBrowser.Common/Net/HttpRequestOptions.cs
+++ b/MediaBrowser.Common/Net/HttpRequestOptions.cs
@@ -94,6 +94,8 @@ namespace MediaBrowser.Common.Net
public CacheMode CacheMode { get; set; }
public TimeSpan CacheLength { get; set; }
+ public int TimeoutMs { get; set; }
+
private string GetHeaderValue(string name)
{
string value;
@@ -115,6 +117,8 @@ namespace MediaBrowser.Common.Net
LogRequest = true;
CacheMode = CacheMode.None;
+
+ TimeoutMs = 20000;
}
public void SetPostData(IDictionary<string,string> values)