mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Replace WebSocketSharpRequest.PathInfo custom URL query parsing with a framework function
#491
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EraYaN on GitHub (Mar 5, 2019).
Is your feature request related to a problem? Please describe.
Right now the code is littered with custom implementations for things that the framework has built in functions for.
Describe the solution you'd like
Probably something based on
QueryHelper.ParseQuery@voodoos commented on GitHub (Apr 5, 2019):
I am having a look at it right now and it does seems like a lot of dead code to me:
If I am not mistaken the
ResolvePathInfoFromMappedPath(string fullPath, string mappedPathRoot)function subtracts the prefixmappedPathRootfrom the full pathfullPath.But the second argument is always
nullor""because it is used with thestring HandlerFactoryPathmember variable which is never initialized...Thus in this state the
ResolvePathInfoFromMappedPathdoes nothing more than the identity function.Do you know what would be the role of
HandlerFactoryPath?Should I just remove all that complexity or make is as flexible as it is now (but using more standard ways) even if it is of no use yet ?
PS: new dev here, hope I can help with some parts of this great adventure !