[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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user