diff options
author | Diva Canto | 2010-08-06 10:57:52 -0700 |
---|---|---|
committer | Diva Canto | 2010-08-06 10:57:52 -0700 |
commit | db629af6d3caad6b8f235fae527a485144398306 (patch) | |
tree | bc019c946703f8996e67cc42753e4f376ed19d00 /OpenSim | |
parent | Addresses http://opensimulator.org/mantis/view.php?id=4919 (diff) | |
download | opensim-SC_OLD-db629af6d3caad6b8f235fae527a485144398306.zip opensim-SC_OLD-db629af6d3caad6b8f235fae527a485144398306.tar.gz opensim-SC_OLD-db629af6d3caad6b8f235fae527a485144398306.tar.bz2 opensim-SC_OLD-db629af6d3caad6b8f235fae527a485144398306.tar.xz |
HACK ALERT! There's some underlying bug in the HTTP server that makes requests come up with Accept headers from previous requests. Until that gets fixed, this hack goes in.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 8123f2f..f7a49af 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -319,6 +319,13 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
319 | OSHttpRequest req = new OSHttpRequest(context, request); | 319 | OSHttpRequest req = new OSHttpRequest(context, request); |
320 | OSHttpResponse resp = new OSHttpResponse(new HttpResponse(context, request),context); | 320 | OSHttpResponse resp = new OSHttpResponse(new HttpResponse(context, request),context); |
321 | HandleRequest(req, resp); | 321 | HandleRequest(req, resp); |
322 | |||
323 | // !!!HACK ALERT!!! | ||
324 | // There seems to be a bug in the underlying http code that makes subsequent requests | ||
325 | // come up with trash in Accept headers. Until that gets fixed, we're cleaning them up here. | ||
326 | if (request.AcceptTypes != null) | ||
327 | for (int i = 0; i < request.AcceptTypes.Length; i++) | ||
328 | request.AcceptTypes[i] = string.Empty; | ||
322 | } | 329 | } |
323 | 330 | ||
324 | // public void ConvertIHttpClientContextToOSHttp(object stateinfo) | 331 | // public void ConvertIHttpClientContextToOSHttp(object stateinfo) |