diff options
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r-- | OpenSim/Framework/Servers/OSHttpRequest.cs | 4 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/OSHttpRequestPump.cs | 4 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/RestObjectPoster.cs | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Framework/Servers/OSHttpRequest.cs b/OpenSim/Framework/Servers/OSHttpRequest.cs index 10614b2..1eb094e 100644 --- a/OpenSim/Framework/Servers/OSHttpRequest.cs +++ b/OpenSim/Framework/Servers/OSHttpRequest.cs | |||
@@ -57,7 +57,7 @@ namespace OpenSim.Framework.Servers | |||
57 | private string _userAgent; | 57 | private string _userAgent; |
58 | 58 | ||
59 | private HttpRequest _request; | 59 | private HttpRequest _request; |
60 | private HttpClientContext _context; | 60 | // private HttpClientContext _context; |
61 | 61 | ||
62 | public string[] AcceptTypes | 62 | public string[] AcceptTypes |
63 | { | 63 | { |
@@ -175,7 +175,7 @@ namespace OpenSim.Framework.Servers | |||
175 | 175 | ||
176 | public OSHttpRequest(HttpClientContext context, HttpRequest req) | 176 | public OSHttpRequest(HttpClientContext context, HttpRequest req) |
177 | { | 177 | { |
178 | _context = context; | 178 | // _context = context; |
179 | _request = req; | 179 | _request = req; |
180 | } | 180 | } |
181 | } | 181 | } |
diff --git a/OpenSim/Framework/Servers/OSHttpRequestPump.cs b/OpenSim/Framework/Servers/OSHttpRequestPump.cs index f04134c..3459cc6 100644 --- a/OpenSim/Framework/Servers/OSHttpRequestPump.cs +++ b/OpenSim/Framework/Servers/OSHttpRequestPump.cs | |||
@@ -147,8 +147,6 @@ namespace OpenSim.Framework.Servers | |||
147 | Dictionary<string, Regex> headerRegexs = h.Headers; | 147 | Dictionary<string, Regex> headerRegexs = h.Headers; |
148 | Regex endPointsRegex = h.IPEndPointWhitelist; | 148 | Regex endPointsRegex = h.IPEndPointWhitelist; |
149 | 149 | ||
150 | int pathMatch = 0; | ||
151 | int headersMatch = 0; | ||
152 | 150 | ||
153 | // first, check whether IPEndPointWhitelist applies | 151 | // first, check whether IPEndPointWhitelist applies |
154 | // and, if it does, whether client is on that white | 152 | // and, if it does, whether client is on that white |
@@ -175,6 +173,8 @@ namespace OpenSim.Framework.Servers | |||
175 | // whitelist & path ok, now check headers | 173 | // whitelist & path ok, now check headers |
176 | if (null != headerRegexs) | 174 | if (null != headerRegexs) |
177 | { | 175 | { |
176 | int headersMatch = 0; | ||
177 | |||
178 | // go through all header Regexs and evaluate | 178 | // go through all header Regexs and evaluate |
179 | // match: | 179 | // match: |
180 | // if header field not present or does not match: | 180 | // if header field not present or does not match: |
diff --git a/OpenSim/Framework/Servers/RestObjectPoster.cs b/OpenSim/Framework/Servers/RestObjectPoster.cs index c77cb26..c449d01 100644 --- a/OpenSim/Framework/Servers/RestObjectPoster.cs +++ b/OpenSim/Framework/Servers/RestObjectPoster.cs | |||
@@ -69,7 +69,8 @@ namespace OpenSim.Framework.Servers | |||
69 | 69 | ||
70 | Stream requestStream = request.GetRequestStream(); | 70 | Stream requestStream = request.GetRequestStream(); |
71 | requestStream.Write(buffer.ToArray(), 0, length); | 71 | requestStream.Write(buffer.ToArray(), 0, length); |
72 | IAsyncResult result = request.BeginGetResponse(AsyncCallback, request); | 72 | // IAsyncResult result = request.BeginGetResponse(AsyncCallback, request); |
73 | request.BeginGetResponse(AsyncCallback, request); | ||
73 | } | 74 | } |
74 | 75 | ||
75 | private static void AsyncCallback(IAsyncResult result) | 76 | private static void AsyncCallback(IAsyncResult result) |