diff options
Add a 0 parameter overload for RestClient.Request() for use when no auth is required. This preserves API compatibility for external modules using this function.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/RestClient.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/RestClient.cs b/OpenSim/Framework/Communications/RestClient.cs index 89e6aa1..586400f 100644 --- a/OpenSim/Framework/Communications/RestClient.cs +++ b/OpenSim/Framework/Communications/RestClient.cs | |||
@@ -299,6 +299,14 @@ namespace OpenSim.Framework.Communications | |||
299 | /// <summary> | 299 | /// <summary> |
300 | /// Perform a synchronous request | 300 | /// Perform a synchronous request |
301 | /// </summary> | 301 | /// </summary> |
302 | public Stream Request() | ||
303 | { | ||
304 | return Request(null); | ||
305 | } | ||
306 | |||
307 | /// <summary> | ||
308 | /// Perform a synchronous request | ||
309 | /// </summary> | ||
302 | public Stream Request(IServiceAuth auth) | 310 | public Stream Request(IServiceAuth auth) |
303 | { | 311 | { |
304 | lock (_lock) | 312 | lock (_lock) |