* Added contentType parameter to new HttpListener.AddHandler() overload

* Updated Simian to use the simplified HttpListener.AddHandler() overload

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2317 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-10-29 20:19:08 +00:00
parent dad28f767a
commit 3243e3153d
2 changed files with 6 additions and 29 deletions

View File

@@ -86,10 +86,11 @@ namespace OpenMetaverse.Capabilities
isRunning = false;
}
public void AddHandler(string method, string path, HttpRequestCallback callback)
public void AddHandler(string method, string contentType, string path, HttpRequestCallback callback)
{
HttpRequestSignature signature = new HttpRequestSignature();
signature.Method = method;
signature.ContentType = contentType;
signature.Path = path;
AddHandler(new HttpRequestHandler(signature, callback));
}