diff options
author | Jeff Ames | 2008-08-18 00:39:10 +0000 |
---|---|---|
committer | Jeff Ames | 2008-08-18 00:39:10 +0000 |
commit | 6ef9d4da901a346c232458317cca6268da888e2e (patch) | |
tree | dd1d935b10f34f261839da9f9879c02322e8ede7 /OpenSim/Framework/Servers/OSHttpHttpHandler.cs | |
parent | Update svn properties, minor formatting cleanup. (diff) | |
download | opensim-SC_OLD-6ef9d4da901a346c232458317cca6268da888e2e.zip opensim-SC_OLD-6ef9d4da901a346c232458317cca6268da888e2e.tar.gz opensim-SC_OLD-6ef9d4da901a346c232458317cca6268da888e2e.tar.bz2 opensim-SC_OLD-6ef9d4da901a346c232458317cca6268da888e2e.tar.xz |
Formatting cleanup.
Diffstat (limited to 'OpenSim/Framework/Servers/OSHttpHttpHandler.cs')
-rw-r--r-- | OpenSim/Framework/Servers/OSHttpHttpHandler.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Framework/Servers/OSHttpHttpHandler.cs b/OpenSim/Framework/Servers/OSHttpHttpHandler.cs index 66120c3..e08df85 100644 --- a/OpenSim/Framework/Servers/OSHttpHttpHandler.cs +++ b/OpenSim/Framework/Servers/OSHttpHttpHandler.cs | |||
@@ -58,7 +58,7 @@ namespace OpenSim.Framework.Servers | |||
58 | /// <param name="headers">null or dictionary with header | 58 | /// <param name="headers">null or dictionary with header |
59 | /// regexs</param> | 59 | /// regexs</param> |
60 | /// <param name="whitelist">null or IP address whitelist</param> | 60 | /// <param name="whitelist">null or IP address whitelist</param> |
61 | public OSHttpHttpHandler(GenericHTTPMethod handler, Regex method, Regex path, | 61 | public OSHttpHttpHandler(GenericHTTPMethod handler, Regex method, Regex path, |
62 | Dictionary<string, Regex> query, | 62 | Dictionary<string, Regex> query, |
63 | Dictionary<string, Regex> headers, Regex whitelist) | 63 | Dictionary<string, Regex> headers, Regex whitelist) |
64 | : base(method, path, query, headers, new Regex(@"^text/html", RegexOptions.IgnoreCase | RegexOptions.Compiled), | 64 | : base(method, path, query, headers, new Regex(@"^text/html", RegexOptions.IgnoreCase | RegexOptions.Compiled), |
@@ -71,7 +71,7 @@ namespace OpenSim.Framework.Servers | |||
71 | /// Instantiate an HTTP handler. | 71 | /// Instantiate an HTTP handler. |
72 | /// </summary> | 72 | /// </summary> |
73 | /// <param name="handler">a GenericHTTPMethod</param> | 73 | /// <param name="handler">a GenericHTTPMethod</param> |
74 | public OSHttpHttpHandler(GenericHTTPMethod handler) | 74 | public OSHttpHttpHandler(GenericHTTPMethod handler) |
75 | : this(handler, new Regex(@"^GET$", RegexOptions.IgnoreCase | RegexOptions.Compiled), null, null, null, null) | 75 | : this(handler, new Regex(@"^GET$", RegexOptions.IgnoreCase | RegexOptions.Compiled), null, null, null, null) |
76 | { | 76 | { |
77 | } | 77 | } |
@@ -79,7 +79,7 @@ namespace OpenSim.Framework.Servers | |||
79 | /// <summary> | 79 | /// <summary> |
80 | /// Invoked by OSHttpRequestPump. | 80 | /// Invoked by OSHttpRequestPump. |
81 | /// </summary> | 81 | /// </summary> |
82 | public override OSHttpHandlerResult Process(OSHttpRequest request) | 82 | public override OSHttpHandlerResult Process(OSHttpRequest request) |
83 | { | 83 | { |
84 | // call handler method | 84 | // call handler method |
85 | Hashtable responseData = _handler(request.Query); | 85 | Hashtable responseData = _handler(request.Query); |
@@ -110,7 +110,7 @@ namespace OpenSim.Framework.Servers | |||
110 | } | 110 | } |
111 | 111 | ||
112 | response.AddHeader("Content-type", contentType); | 112 | response.AddHeader("Content-type", contentType); |
113 | 113 | ||
114 | byte[] buffer; | 114 | byte[] buffer; |
115 | 115 | ||
116 | if (!contentType.Contains("image")) | 116 | if (!contentType.Contains("image")) |
@@ -142,4 +142,4 @@ namespace OpenSim.Framework.Servers | |||
142 | return OSHttpHandlerResult.Done; | 142 | return OSHttpHandlerResult.Done; |
143 | } | 143 | } |
144 | } | 144 | } |
145 | } \ No newline at end of file | 145 | } |