diff options
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/SocketSharp/Extensions.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/SocketSharp/Extensions.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/HttpServer/SocketSharp/Extensions.cs b/Emby.Server.Implementations/HttpServer/SocketSharp/Extensions.cs new file mode 100644 index 000000000..07a338f19 --- /dev/null +++ b/Emby.Server.Implementations/HttpServer/SocketSharp/Extensions.cs @@ -0,0 +1,12 @@ +using SocketHttpListener.Net; + +namespace Emby.Server.Implementations.HttpServer.SocketSharp +{ + public static class Extensions + { + public static string GetOperationName(this HttpListenerRequest request) + { + return request.Url.Segments[request.Url.Segments.Length - 1]; + } + } +} |
