mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Fix regression where llHTTPRequests which did not get an OK response returned 499 and the exception message in the http_response event rather than the actual response code and body.
This was a regression since commit 831e4c3 (Thu Apr 4 00:36:15 2013)
This commit also adds a regression test for this case, though this currently only works with Mono
This aims to address http://opensimulator.org/mantis/view.php?id=6704
This commit is contained in:
@@ -141,6 +141,11 @@ namespace OpenSim.Framework
|
||||
public static FireAndForgetMethod DefaultFireAndForgetMethod = FireAndForgetMethod.SmartThreadPool;
|
||||
public static FireAndForgetMethod FireAndForgetMethod = DefaultFireAndForgetMethod;
|
||||
|
||||
public static bool IsPlatformMono
|
||||
{
|
||||
get { return Type.GetType("Mono.Runtime") != null; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the directory where the current running executable
|
||||
/// is located
|
||||
@@ -1326,7 +1331,7 @@ namespace OpenSim.Framework
|
||||
ru = "OSX/Mono";
|
||||
else
|
||||
{
|
||||
if (Type.GetType("Mono.Runtime") != null)
|
||||
if (IsPlatformMono)
|
||||
ru = "Win/Mono";
|
||||
else
|
||||
ru = "Win/.NET";
|
||||
|
||||
Reference in New Issue
Block a user