aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2009-08-17 20:02:42 +0100
committerJustin Clark-Casey (justincc)2009-08-17 20:02:42 +0100
commit4a992388e3ec515ea179fff5cd7ef62bccca411e (patch)
treee2121e822417e111845342ef32bbbb5e6d149bbb
parentApply http://opensimulator.org/mantis/view.php?id=3538 (diff)
downloadopensim-SC-4a992388e3ec515ea179fff5cd7ef62bccca411e.zip
opensim-SC-4a992388e3ec515ea179fff5cd7ef62bccca411e.tar.gz
opensim-SC-4a992388e3ec515ea179fff5cd7ef62bccca411e.tar.bz2
opensim-SC-4a992388e3ec515ea179fff5cd7ef62bccca411e.tar.xz
Apply http://opensimulator.org/mantis/view.php?id=4016
Make previously hidden cookies available to code Thanks jhurliman
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs13
-rw-r--r--prebuild.xml1
2 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs
index 6214563..c53160f 100644
--- a/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs
+++ b/OpenSim/Framework/Servers/HttpServer/OSHttpRequest.cs
@@ -33,6 +33,7 @@ using System.IO;
33using System.Net; 33using System.Net;
34using System.Reflection; 34using System.Reflection;
35using System.Text; 35using System.Text;
36using System.Web;
36using HttpServer; 37using HttpServer;
37using log4net; 38using log4net;
38 39
@@ -72,6 +73,18 @@ namespace OpenSim.Framework.Servers.HttpServer
72 } 73 }
73 private string _contentType; 74 private string _contentType;
74 75
76 public HttpCookieCollection Cookies
77 {
78 get
79 {
80 RequestCookies cookies = _request.Cookies;
81 HttpCookieCollection httpCookies = new HttpCookieCollection();
82 foreach (RequestCookie cookie in cookies)
83 httpCookies.Add(new HttpCookie(cookie.Name, cookie.Value));
84 return httpCookies;
85 }
86 }
87
75 public bool HasEntityBody 88 public bool HasEntityBody
76 { 89 {
77 get { return _request.ContentLength != 0; } 90 get { return _request.ContentLength != 0; }
diff --git a/prebuild.xml b/prebuild.xml
index 6401ff0..5e44169 100644
--- a/prebuild.xml
+++ b/prebuild.xml
@@ -70,6 +70,7 @@
70 <ReferencePath>../../../../bin/</ReferencePath> 70 <ReferencePath>../../../../bin/</ReferencePath>
71 <Reference name="System"/> 71 <Reference name="System"/>
72 <Reference name="System.Xml"/> 72 <Reference name="System.Xml"/>
73 <Reference name="System.Web"/>
73 <Reference name="OpenMetaverse.StructuredData.dll"/> 74 <Reference name="OpenMetaverse.StructuredData.dll"/>
74 <Reference name="OpenMetaverseTypes.dll"/> 75 <Reference name="OpenMetaverseTypes.dll"/>
75 <Reference name="XMLRPC.dll"/> 76 <Reference name="XMLRPC.dll"/>