diff options
author | Jeff Ames | 2009-07-23 15:32:11 +0000 |
---|---|---|
committer | Jeff Ames | 2009-07-23 15:32:11 +0000 |
commit | a133e83f3ab38ad7abf0b3c591421d3eac418c0c (patch) | |
tree | 0c0de3d37510a54d8668402d310fc0cf7e8c255d /OpenSim/Region/ScriptEngine | |
parent | Minor: rename libsl to libomv in Contributors.txt. (diff) | |
download | opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.zip opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.tar.gz opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.tar.bz2 opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.tar.xz |
Formatting cleanup.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 37d82d0..62c3fc2 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -9019,20 +9019,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9019 | if (userAgent != null) | 9019 | if (userAgent != null) |
9020 | httpHeaders["User-Agent"] = userAgent; | 9020 | httpHeaders["User-Agent"] = userAgent; |
9021 | 9021 | ||
9022 | string authregex = @"^(https?:\/\/)(\w+):(\w+)@(.*)$"; | 9022 | string authregex = @"^(https?:\/\/)(\w+):(\w+)@(.*)$"; |
9023 | Regex r = new Regex(authregex); | 9023 | Regex r = new Regex(authregex); |
9024 | int[] gnums = r.GetGroupNumbers(); | 9024 | int[] gnums = r.GetGroupNumbers(); |
9025 | Match m = r.Match(url); | 9025 | Match m = r.Match(url); |
9026 | if ( m.Success ) { | 9026 | if (m.Success) { |
9027 | for (int i = 1; i < gnums.Length; i++) { | 9027 | for (int i = 1; i < gnums.Length; i++) { |
9028 | System.Text.RegularExpressions.Group g = m.Groups[gnums[i]]; | 9028 | System.Text.RegularExpressions.Group g = m.Groups[gnums[i]]; |
9029 | CaptureCollection cc = g.Captures; | 9029 | CaptureCollection cc = g.Captures; |
9030 | } | 9030 | } |
9031 | if ( m.Groups.Count == 5 ) { | 9031 | if (m.Groups.Count == 5) { |
9032 | httpHeaders["Authorization"] = String.Format("Basic {0}", Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(m.Groups[2].ToString() + ":" + m.Groups[3].ToString()))); | 9032 | httpHeaders["Authorization"] = String.Format("Basic {0}", Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(m.Groups[2].ToString() + ":" + m.Groups[3].ToString()))); |
9033 | url = m.Groups[1].ToString() + m.Groups[4].ToString(); | 9033 | url = m.Groups[1].ToString() + m.Groups[4].ToString(); |
9034 | } | 9034 | } |
9035 | } | 9035 | } |
9036 | 9036 | ||
9037 | UUID reqID = httpScriptMod. | 9037 | UUID reqID = httpScriptMod. |
9038 | StartHttpRequest(m_localID, m_itemID, url, param, httpHeaders, body); | 9038 | StartHttpRequest(m_localID, m_itemID, url, param, httpHeaders, body); |