Bond-009
b477b3874e
Fix some warnings
5 years ago
Bond-009
b14d6d0417
Fix GetPathValue function
5 years ago
Vasily
6b6fede2e0
Address review comments
5 years ago
Vasily
82f8345aa5
Log to debug all HTTP 500 response urls
5 years ago
Vasily
1176749f14
Merge pull request #1863 from joshuaboniface/fix-baseurl-issues
...
Fix inconsistent BaseUrl behavior
5 years ago
Joshua Boniface
b96079fee6
Make NormalizeUrlPath static
5 years ago
Vasily
03450f383f
Fix template for logging
5 years ago
Vasily
8109c7eb30
Always log at least error message when error happens during request processing
5 years ago
Vasily
33b69a7099
Set response length and mime type correctly when reporting an error
5 years ago
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).
5 years ago
Vasily
fc99f1f563
Merge pull request #1785 from dkanada/compat
...
Add mediabrowser route back for now
5 years ago
dkanada
b5b7db1f32
add an exception to logging
5 years ago
dkanada
ab7e697f30
add mediabrowser route back for now
5 years ago
Bond_009
c9820d30ed
Fix multiple mistakes and warnings
5 years ago
Erik Larsson
74864832ca
Set log level to debug for HTTP range requests
...
This removes some spam when a DLNA renderer uses byte seeking.
5 years ago
Bond-009
ee637e8fec
Fix warnings, improve performance ( #1665 )
...
* Fix warnings, improve performance
`QueryResult.Items` is now a `IReadOnlyList` so we don't need to
allocate a new `Array` when we have a `List` (and `Items` shouldn't need to
be mutable anyway)
* Update Providers .csproj to latest C#
* Remove extra newline from DtoService.cs
* Remove extra newline from UserLibraryService.cs
5 years ago
dkanada
97d6c2db6b
keep old base url for now
5 years ago
dkanada
d521e5c36a
add base url to server configuration
5 years ago
dkanada
c987203f5a
remove old routes from http server
5 years ago
Bond_009
9fff4b060e
Replace custom code with Asp.Net Core code
5 years ago
Erik Larsson
0e6417c9fa
Set log level to debug for HTTP range requests
5 years ago
Bond-009
ce1fa42f9d
Merge branch 'master' into tasks
6 years ago
Joshua M. Boniface
2bc378a9c3
Merge pull request #1337 from jellyfin/release-10.3.z
...
Backmerge for 10.3.2 release
6 years ago
Bond-009
61d7bed181
Merge pull request #1304 from jellyfin/release-10.3.z
...
Backmerge 10.3.1
6 years ago
Bond_009
71479286e9
Fix #1234
6 years ago
Claus Vium
28c2ac528d
Re-add content length, semi revert of changes in #1010 ( #1287 )
...
* Re-add content length, semi revert of changes in #1010
6 years ago
Bond-009
a8da122fb3
Merge pull request #1252 from jellyfin/release-10.3.z
...
Backmerge release 10.3.0
6 years ago
Joshua Boniface
250e0c75df
Add MethodNotAllowedException with code 405
6 years ago
Joshua M. Boniface
c3532b92f7
Merge pull request #1158 from Bond-009/httpclean
...
Reduce complexity http routes
6 years ago
Bond-009
a332092769
Reduce complexity http routes
6 years ago
Bond-009
b44a70ff36
Simplify/remove/clean code
...
* Remove useless runtime check (we only support one)
* Remove unused args
* Remove a global constant
And ofc fix some warnings ;)
6 years ago
Bond_009
2696ac5eac
Lower the amount of running tasks
6 years ago
Bill Thornton
4cd8903abc
Fix default value for Expires header
6 years ago
Bond-009
e64aaebbac
Improvements around streams
...
* Use ArrayPool instead of allocating new buffers each time
* Remove NetworkStream copy
* Remove some dead code
6 years ago
Claus Vium
e3b844b5aa
Add urlprefixes during init
6 years ago
Claus Vium
3fa43a1e08
Don't set status code if response is closed
6 years ago
Claus Vium
dfff68b2f4
Make SkipLogExtensions static
6 years ago
Claus Vium
bba049c987
Make FileSystem readonly
6 years ago
Claus Vium
446f9bf81f
Remove more Content-Length references
6 years ago
Claus Vium
913e80fd55
Add ProcessWebSocketRequest to IHttpListener
6 years ago
Claus Vium
9a4a01fb0e
Fix DI in FileWriter.TransmitFile
6 years ago
Claus Vium
78742b8e4c
Switch to HeaderNames instead of hardcoded strings (and other header related fixes)
6 years ago
Claus Vium
bc00617df7
Remove unused Brotli compressor
6 years ago
Claus Vium
51648a2a21
Remove unused _listener
6 years ago
Claus Vium
0250204f14
Expand todo
6 years ago
Claus Vium
9020f68ce1
Use QueryHelpers.AddQueryString
6 years ago
Claus Vium
e823c11b46
Add certificate to https and minor cleanup
6 years ago
Claus Vium
fb1de5a921
Remove more cruft and add the beginnings of a socket middleware
6 years ago
Claus Vium
c0b95dbc79
Fix query log for real
6 years ago
Claus Vium
647adc51c8
Fix query log
6 years ago