diff options
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs index 0e4a941..fefcb20 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceHttpRequest.cs | |||
@@ -82,6 +82,9 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
82 | 82 | ||
83 | byte[] buffer = server.DoHTTPGruntWork(responsedata, response); | 83 | byte[] buffer = server.DoHTTPGruntWork(responsedata, response); |
84 | 84 | ||
85 | if(Request.Body.CanRead) | ||
86 | Request.Body.Dispose(); | ||
87 | |||
85 | response.SendChunked = false; | 88 | response.SendChunked = false; |
86 | response.ContentLength64 = buffer.Length; | 89 | response.ContentLength64 = buffer.Length; |
87 | response.ContentEncoding = Encoding.UTF8; | 90 | response.ContentEncoding = Encoding.UTF8; |
@@ -107,6 +110,9 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
107 | OSHttpResponse response | 110 | OSHttpResponse response |
108 | = new OSHttpResponse(new HttpResponse(HttpContext, Request), HttpContext); | 111 | = new OSHttpResponse(new HttpResponse(HttpContext, Request), HttpContext); |
109 | 112 | ||
113 | if(Request.Body.CanRead) | ||
114 | Request.Body.Dispose(); | ||
115 | |||
110 | response.SendChunked = false; | 116 | response.SendChunked = false; |
111 | response.ContentLength64 = 0; | 117 | response.ContentLength64 = 0; |
112 | response.ContentEncoding = Encoding.UTF8; | 118 | response.ContentEncoding = Encoding.UTF8; |