aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs
diff options
context:
space:
mode:
authorUbitUmarov2018-12-03 13:51:45 +0000
committerUbitUmarov2018-12-03 13:51:45 +0000
commit037de89a751df98f8d0c950c08df6e46326ae00e (patch)
treef6f793a0f442f0ba879566df3e1fb08485387741 /OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs
parentavoid a data copy (diff)
downloadopensim-SC-037de89a751df98f8d0c950c08df6e46326ae00e.zip
opensim-SC-037de89a751df98f8d0c950c08df6e46326ae00e.tar.gz
opensim-SC-037de89a751df98f8d0c950c08df6e46326ae00e.tar.bz2
opensim-SC-037de89a751df98f8d0c950c08df6e46326ae00e.tar.xz
clean a bit
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs18
1 files changed, 6 insertions, 12 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs
index 39d9b13..5a49881 100644
--- a/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs
+++ b/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs
@@ -251,12 +251,12 @@ namespace OpenSim.Framework.Servers.HttpServer
251 { 251 {
252 get 252 get
253 { 253 {
254 return _httpResponse.Chunked; 254 return _httpResponse.Chunked;
255 } 255 }
256 256
257 set 257 set
258 { 258 {
259 _httpResponse.Chunked = value; 259 _httpResponse.Chunked = value;
260 } 260 }
261 } 261 }
262 262
@@ -294,7 +294,6 @@ namespace OpenSim.Framework.Servers.HttpServer
294 } 294 }
295 295
296 protected IHttpResponse _httpResponse; 296 protected IHttpResponse _httpResponse;
297 private IHttpClientContext _httpClientContext;
298 297
299 public OSHttpResponse() {} 298 public OSHttpResponse() {}
300 299
@@ -312,12 +311,12 @@ namespace OpenSim.Framework.Servers.HttpServer
312 public OSHttpResponse(OSHttpRequest req) 311 public OSHttpResponse(OSHttpRequest req)
313 { 312 {
314 _httpResponse = new HttpResponse(req.IHttpClientContext, req.IHttpRequest); 313 _httpResponse = new HttpResponse(req.IHttpClientContext, req.IHttpRequest);
315 _httpClientContext = req.IHttpClientContext; 314
316 } 315 }
317 public OSHttpResponse(HttpResponse resp, IHttpClientContext clientContext) 316
317 public OSHttpResponse(HttpResponse resp)
318 { 318 {
319 _httpResponse = resp; 319 _httpResponse = resp;
320 _httpClientContext = clientContext;
321 } 320 }
322 321
323 /// <summary> 322 /// <summary>
@@ -337,13 +336,8 @@ namespace OpenSim.Framework.Servers.HttpServer
337 /// </summary> 336 /// </summary>
338 public void Send() 337 public void Send()
339 { 338 {
339 _httpResponse.Chunked = false;
340 _httpResponse.Send(); 340 _httpResponse.Send();
341 } 341 }
342
343 public void FreeContext()
344 {
345 if (_httpClientContext != null)
346 _httpClientContext.Close();
347 }
348 } 342 }
349} \ No newline at end of file 343} \ No newline at end of file