aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2009-09-24 15:02:55 +0100
committerJustin Clark-Casey (justincc)2009-09-24 15:02:55 +0100
commite67341f24c3706be09d2c0c5d2d4ddeba1ddd089 (patch)
treeffa12c25e70748567d796c664a838ae72a1d0e4c
parentAllow load/save iar password checks to be done in grid mode (diff)
downloadopensim-SC_OLD-e67341f24c3706be09d2c0c5d2d4ddeba1ddd089.zip
opensim-SC_OLD-e67341f24c3706be09d2c0c5d2d4ddeba1ddd089.tar.gz
opensim-SC_OLD-e67341f24c3706be09d2c0c5d2d4ddeba1ddd089.tar.bz2
opensim-SC_OLD-e67341f24c3706be09d2c0c5d2d4ddeba1ddd089.tar.xz
minor: replace xmlprc 'no method found' magic number with constant from xmlrpc library
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index db87958..01990fa 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -736,8 +736,11 @@ namespace OpenSim.Framework.Servers.HttpServer
736 else 736 else
737 { 737 {
738 xmlRpcResponse = new XmlRpcResponse(); 738 xmlRpcResponse = new XmlRpcResponse();
739
739 // Code set in accordance with http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php 740 // Code set in accordance with http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php
740 xmlRpcResponse.SetFault(-32601, String.Format("Requested method [{0}] not found", methodName)); 741 xmlRpcResponse.SetFault(
742 XmlRpcErrorCodes.SERVER_ERROR_METHOD,
743 String.Format("Requested method [{0}] not found", methodName));
741 } 744 }
742 745
743 responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse); 746 responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse);
@@ -757,6 +760,7 @@ namespace OpenSim.Framework.Servers.HttpServer
757 response.SendChunked = false; 760 response.SendChunked = false;
758 response.ContentLength64 = buf.Length; 761 response.ContentLength64 = buf.Length;
759 response.ContentEncoding = Encoding.UTF8; 762 response.ContentEncoding = Encoding.UTF8;
763
760 try 764 try
761 { 765 {
762 response.OutputStream.Write(buf, 0, buf.Length); 766 response.OutputStream.Write(buf, 0, buf.Length);