mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #1229] [MERGED] Cleaning WebSocketSharp continued #8703
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?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/1229
Author: @voodoos
Created: 4/12/2019
Status: ✅ Merged
Merged: 5/9/2019
Merged by: @Bond-009
Base:
master← Head:cleanup/SocketSharp📝 Commits (5)
5f6ab83Extend Microsoft.Net.Http.Headers.HeaderNamesa6e1b23Simplify headers use in WSS56d1050Replace custom ip "normalization" by methods fromIPAddressbb80755Replace CRLF injection mitigation by use of .NET ip parsingba12d96Removed wrapping of HeaderNames fields📊 Changes
3 files changed (+26 additions, -115 deletions)
View changed files
📝
Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs(+15 -95)➕
MediaBrowser.Common/Net/CustomHeaderNames.cs(+11 -0)📝
MediaBrowser.Model/Services/IHttpRequest.cs(+0 -20)📄 Description
More cleaning of the WebSocketSharp class.
Changes
wrapping andextendingHeaderNamesin an attempt to answer #1046.Had to create a wrapper because it is (so-far) not possible to extend or inherit static classes. Not sure if this is a good solution though.NormalizeIPcode with adequate .NET Core methods.IPRemote.TryParsewhich checks if a string is a valid IP or not.Issues
Fixes #1046
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.