Did some code checks for BUG-1708, used resharper to clean up some things. Added timeout values, but couldn't find a solution yet.

This commit is contained in:
RKrom 2014-11-29 20:55:11 +01:00
commit 0d59072bc1
3 changed files with 100 additions and 77 deletions

View file

@ -672,11 +672,11 @@ namespace GreenshotPlugin.Core {
}
}
// Create webrequest
HttpWebRequest webRequest = (HttpWebRequest)NetworkHelper.CreateWebRequest(requestURL);
HttpWebRequest webRequest = NetworkHelper.CreateWebRequest(requestURL);
webRequest.Method = method.ToString();
webRequest.ServicePoint.Expect100Continue = false;
webRequest.UserAgent = _userAgent;
webRequest.Timeout = 20000;
webRequest.Timeout = 100000;
if (UseHTTPHeadersForAuthorization && authHeader != null) {
LOG.DebugFormat("Authorization: OAuth {0}", authHeader);