aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/IServerApplicationHost.cs
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-05-10 18:07:56 -0400
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-05-10 18:07:56 -0400
commit3abf870c1e321dbeb484e4e255000a27760d7bc9 (patch)
tree3409419abefa1aec0f7774f9152527f4a7a69c63 /MediaBrowser.Controller/IServerApplicationHost.cs
parentdc5165b97fdd1342d4673ba1a30d44198327c314 (diff)
Do not include a double slash in URLs when a base URL is not set
Diffstat (limited to 'MediaBrowser.Controller/IServerApplicationHost.cs')
-rw-r--r--MediaBrowser.Controller/IServerApplicationHost.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/IServerApplicationHost.cs b/MediaBrowser.Controller/IServerApplicationHost.cs
index 0028bd689..4f0ff1ee1 100644
--- a/MediaBrowser.Controller/IServerApplicationHost.cs
+++ b/MediaBrowser.Controller/IServerApplicationHost.cs
@@ -76,7 +76,7 @@ namespace MediaBrowser.Controller
/// over HTTP (not HTTPS).
/// </summary>
/// <returns>The API URL.</returns>
- public Uri GetLoopbackHttpApiUrl();
+ string GetLoopbackHttpApiUrl();
/// <summary>
/// Gets a local (LAN) URL that can be used to access the API. HTTPS will be preferred when available.
@@ -98,7 +98,7 @@ namespace MediaBrowser.Controller
/// preferring the HTTPS port, if available.
/// </param>
/// <returns>The API URL.</returns>
- Uri GetLocalApiUrl(ReadOnlySpan<char> hostname, string scheme = null, int? port = null);
+ string GetLocalApiUrl(ReadOnlySpan<char> hostname, string scheme = null, int? port = null);
/// <summary>
/// Open a URL in an external browser window.