jellyfin/Emby.Server.Implementations/HttpServer
Joshua Boniface 2a79ae0a6e Normalize baseUrl behaviour
Fully normalizes the baseUrl behaviour to better match how this sort of
feature works in other programs.

1. The baseUrl is always appended to paths, even the built-in `/emby`
and `/mediabrowser` paths.
2. The baseUrl is set statically at class instance creation, to ensure
it persists through changes until the next restart.
3. Configuration is normalized using a function when set, to ensure it's
in a standard `/mypath` format with leading `/`.
4. Cleans up the conditionals around default redirects. For sanity after
changing the URL, it will match *any* path that doesn't match the
current baseUrl and redirect it back to the main page (with baseUrl).
5. Adds a second method, NormalizeUrlPath, to avoid lots of `+ "/" +`
string manipulations which are unclean - we should always have a leading
slash.
6. Sets the default baseUrl to an empty string to avoid unexpected
behaviour, though this would be worked-around automatically.
7. Adds some debug logs whenever a URL is normalized, to help track down
issues with this code (if any arise).
2019-10-08 18:06:03 -04:00
..
Security Fix multiple mistakes and warnings 2019-09-23 20:32:44 +02:00
FileWriter.cs Set log level to debug for HTTP range requests 2019-09-18 18:29:15 +02:00
HttpListenerHost.cs Normalize baseUrl behaviour 2019-10-08 18:06:03 -04:00
HttpResultFactory.cs Fix #1234 2019-04-24 19:56:57 +02:00
IHttpListener.cs Add ProcessWebSocketRequest to IHttpListener 2019-03-05 20:35:07 +01:00
RangeRequestWriter.cs Re-add content length, semi revert of changes in #1010 (#1287) 2019-04-24 14:06:54 +02:00
ResponseFilter.cs Replace custom code with Asp.Net Core code 2019-08-09 22:36:20 +02:00
StreamWriter.cs Re-add content length, semi revert of changes in #1010 (#1287) 2019-04-24 14:06:54 +02:00
WebSocketConnection.cs Remove more cruft and add the beginnings of a socket middleware 2019-02-27 23:22:55 +01:00