Fix bug introduced in commit c6e3752 (13 Jun 2012) where poll responses would always return OK even if some other status code had been set

0.7.3-extended
Justin Clark-Casey (justincc) 2012-06-16 03:43:45 +01:00
parent 02a163848c
commit 9a6aa528db
1 changed files with 1 additions and 3 deletions

View File

@ -129,9 +129,7 @@ namespace OpenSim.Framework.Servers.HttpServer
OSHttpResponse response OSHttpResponse response
= new OSHttpResponse(new HttpResponse(req.HttpContext, req.Request), req.HttpContext); = new OSHttpResponse(new HttpResponse(req.HttpContext, req.Request), req.HttpContext);
byte[] buffer byte[] buffer = server.DoHTTPGruntWork(responsedata, response);
= server.DoHTTPGruntWork(
responsedata, new OSHttpResponse(new HttpResponse(req.HttpContext, req.Request), req.HttpContext));
response.SendChunked = false; response.SendChunked = false;
response.ContentLength64 = buffer.Length; response.ContentLength64 = buffer.Length;