wasSharp

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 53  →  ?path2? @ 54
/Web/wasHTTPClient.cs
@@ -39,6 +39,11 @@
{
}
 
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)
{
@@ -91,12 +96,6 @@
MediaType = mediaType;
}
 
public void Dispose()
{
HTTPClient?.Dispose();
HTTPClient = null;
}
 
///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2014 Wizardry and Steamworks - License: GNU GPLv3 //
///////////////////////////////////////////////////////////////////////////
@@ -481,6 +480,11 @@
{
return null;
}
}
}
 
public void Dispose()
{
((IDisposable)HTTPClient).Dispose();
}
}
}