mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
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:
parent
b9e86d4af7
commit
0d59072bc1
3 changed files with 100 additions and 77 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue