diff options
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 14 |
1 files changed, 13 insertions, 1 deletions
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 | { |