aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-05-09 07:29:00 -0500
committerJP Dillingham <jp@dillingham.me>2022-05-09 07:29:00 -0500
commit9d311b82eca93e2fe0c9c60452435cbb0a010755 (patch)
treeba9494246fd6ccaff1474374f034ef8ee0cbf1d2 /src/slskd/Program.cs
parent35091805ce75a0d1a17d9a0c1d5faeea6be925fe (diff)
parent49d2e68ab679519c132bc2f7f97e80e34700637b (diff)
downloadslskd-9d311b82eca93e2fe0c9c60452435cbb0a010755.tar.gz
Merge remote-tracking branch 'origin/master' into search-list
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 94cd0eba..c815af41 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -603,13 +603,7 @@ namespace slskd
var urlBase = OptionsAtStartup.Web.UrlBase;
urlBase = urlBase.StartsWith("/") ? urlBase : "/" + urlBase;
- // 404 if a custom urlBase is set, but the request doesn't include it.
- // this is necessary to make sure the development-time and run-time behavior
- // are consistent.
- app.EnforceUrlBase(urlBase);
-
- // use urlBase. this effectively just removes urlBase from the path, which is
- // why the enforcement behavior exists above (the actually requested path becomes ambiguous)
+ // use urlBase. this effectively just removes urlBase from the path.
// inject urlBase into any html files we serve, and rewrite links to ./static or /static to
// prepend the url base.
app.UsePathBase(urlBase);