mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
Make previously hidden cookies available to code Thanks jhurliman
This commit is contained in:
@@ -33,6 +33,7 @@ using System.IO;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using HttpServer;
|
||||
using log4net;
|
||||
|
||||
@@ -72,6 +73,18 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
}
|
||||
private string _contentType;
|
||||
|
||||
public HttpCookieCollection Cookies
|
||||
{
|
||||
get
|
||||
{
|
||||
RequestCookies cookies = _request.Cookies;
|
||||
HttpCookieCollection httpCookies = new HttpCookieCollection();
|
||||
foreach (RequestCookie cookie in cookies)
|
||||
httpCookies.Add(new HttpCookie(cookie.Name, cookie.Value));
|
||||
return httpCookies;
|
||||
}
|
||||
}
|
||||
|
||||
public bool HasEntityBody
|
||||
{
|
||||
get { return _request.ContentLength != 0; }
|
||||
|
||||
Reference in New Issue
Block a user