[OpenMetaverse.Http]

* Made sure to always close streams and responses in CapsBase
* Commented out noisy CAPS logging
* Updated to use the new HttpServer callback signature

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2791 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-05-21 05:33:40 +00:00
parent 069f335441
commit 63522e828c
4 changed files with 89 additions and 70 deletions

View File

@@ -105,14 +105,14 @@ namespace OpenMetaverse.Http
if (postData == null)
{
// GET
Logger.Log.Debug("[CapsClient] GET " + _Address);
//Logger.Log.Debug("[CapsClient] GET " + _Address);
_Request = CapsBase.DownloadStringAsync(_Address, _ClientCert, millisecondsTimeout, DownloadProgressHandler,
RequestCompletedHandler);
}
else
{
// POST
Logger.Log.Debug("[CapsClient] POST (" + postData.Length + " bytes) " + _Address);
//Logger.Log.Debug("[CapsClient] POST (" + postData.Length + " bytes) " + _Address);
_Request = CapsBase.UploadDataAsync(_Address, _ClientCert, contentType, postData, millisecondsTimeout, null,
DownloadProgressHandler, RequestCompletedHandler);
}