diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-05-09 07:29:00 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-05-09 07:29:00 -0500 |
| commit | 9d311b82eca93e2fe0c9c60452435cbb0a010755 (patch) | |
| tree | ba9494246fd6ccaff1474374f034ef8ee0cbf1d2 /src/slskd/Program.cs | |
| parent | 35091805ce75a0d1a17d9a0c1d5faeea6be925fe (diff) | |
| parent | 49d2e68ab679519c132bc2f7f97e80e34700637b (diff) | |
| download | slskd-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.cs | 8 |
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); |
