diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Capabilities/Caps.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 14 |
2 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Framework/Capabilities/Caps.cs b/OpenSim/Framework/Capabilities/Caps.cs index c2f9c3a..3be97b5 100644 --- a/OpenSim/Framework/Capabilities/Caps.cs +++ b/OpenSim/Framework/Capabilities/Caps.cs | |||
@@ -181,7 +181,6 @@ namespace OpenSim.Framework.Capabilities | |||
181 | 181 | ||
182 | RegisterRegionServiceHandlers(capsBase); | 182 | RegisterRegionServiceHandlers(capsBase); |
183 | RegisterInventoryServiceHandlers(capsBase); | 183 | RegisterInventoryServiceHandlers(capsBase); |
184 | |||
185 | } | 184 | } |
186 | 185 | ||
187 | public void RegisterRegionServiceHandlers(string capsBase) | 186 | public void RegisterRegionServiceHandlers(string capsBase) |
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 4c35132..1d05b02 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -785,7 +785,19 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
785 | if (methodWasFound) | 785 | if (methodWasFound) |
786 | { | 786 | { |
787 | xmlRprcRequest.Params.Add(request.Url); // Param[2] | 787 | xmlRprcRequest.Params.Add(request.Url); // Param[2] |
788 | xmlRprcRequest.Params.Add(request.Headers.Get("X-Forwarded-For")); // Param[3] | 788 | |
789 | string xff = "X-Forwarded-For"; | ||
790 | string xfflower = xff.ToLower(); | ||
791 | foreach (string s in request.Headers.AllKeys) | ||
792 | { | ||
793 | if (s != null && s.Equals(xfflower)) | ||
794 | { | ||
795 | xff = xfflower; | ||
796 | break; | ||
797 | } | ||
798 | } | ||
799 | xmlRprcRequest.Params.Add(request.Headers.Get(xff)); // Param[3] | ||
800 | |||
789 | 801 | ||
790 | try | 802 | try |
791 | { | 803 | { |