diff options
author | Justin Clark-Casey (justincc) | 2013-11-15 21:45:08 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-11-15 21:45:08 +0000 |
commit | 7cab41f4223b7febd3fdd42fa7cfefef25e4a9c9 (patch) | |
tree | 24a0c3d086944436431ccae6302cd7cc0ffa8407 /OpenSim/Region/CoreModules/Scripting/HttpRequest | |
parent | If a local land ID is given to the "land show" command, then output to consol... (diff) | |
download | opensim-SC_OLD-7cab41f4223b7febd3fdd42fa7cfefef25e4a9c9.zip opensim-SC_OLD-7cab41f4223b7febd3fdd42fa7cfefef25e4a9c9.tar.gz opensim-SC_OLD-7cab41f4223b7febd3fdd42fa7cfefef25e4a9c9.tar.bz2 opensim-SC_OLD-7cab41f4223b7febd3fdd42fa7cfefef25e4a9c9.tar.xz |
refactor: replace verbose checks with String.IsNullOrEmpty where applicable.
Thanks to Kira for this patch from http://opensimulator.org/mantis/view.php?id=6845
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting/HttpRequest')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs index 1a62405..c3a8afd 100644 --- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs +++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | |||
@@ -460,9 +460,9 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
460 | Request.Headers.Add(HttpCustomHeaders[i], | 460 | Request.Headers.Add(HttpCustomHeaders[i], |
461 | HttpCustomHeaders[i+1]); | 461 | HttpCustomHeaders[i+1]); |
462 | } | 462 | } |
463 | if (proxyurl != null && proxyurl.Length > 0) | 463 | if (!string.IsNullOrEmpty(proxyurl)) |
464 | { | 464 | { |
465 | if (proxyexcepts != null && proxyexcepts.Length > 0) | 465 | if (!string.IsNullOrEmpty(proxyexcepts)) |
466 | { | 466 | { |
467 | string[] elist = proxyexcepts.Split(';'); | 467 | string[] elist = proxyexcepts.Split(';'); |
468 | Request.Proxy = new WebProxy(proxyurl, true, elist); | 468 | Request.Proxy = new WebProxy(proxyurl, true, elist); |
@@ -483,7 +483,7 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
483 | } | 483 | } |
484 | 484 | ||
485 | // Encode outbound data | 485 | // Encode outbound data |
486 | if (OutboundBody != null && OutboundBody.Length > 0) | 486 | if (!string.IsNullOrEmpty(OutboundBody)) |
487 | { | 487 | { |
488 | byte[] data = Util.UTF8.GetBytes(OutboundBody); | 488 | byte[] data = Util.UTF8.GetBytes(OutboundBody); |
489 | 489 | ||