wasSharp

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 54  →  ?path2? @ 53
/Web/wasHTTPClient.cs
@@ -39,11 +39,6 @@
{
}
 
public wasHTTPClient(ProductInfoHeaderValue userAgent, CookieContainer cookieContainer, string mediaType)
: this(userAgent, new CookieContainer(), mediaType, null, null, 60000)
{
}
 
public wasHTTPClient(ProductInfoHeaderValue userAgent, CookieContainer cookieContainer, string mediaType,
AuthenticationHeaderValue authentication, Dictionary<string, string> headers, uint timeout)
{
@@ -96,6 +91,12 @@
MediaType = mediaType;
}
 
public void Dispose()
{
HTTPClient?.Dispose();
HTTPClient = null;
}
 
///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2014 Wizardry and Steamworks - License: GNU GPLv3 //
///////////////////////////////////////////////////////////////////////////
@@ -480,11 +481,6 @@
{
return null;
}
}
 
public void Dispose()
{
((IDisposable)HTTPClient).Dispose();
}
}
}
}