mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-27 12:31:57 +00:00
Removed some warnings
This commit is contained in:
@@ -1,19 +1,13 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Security.Principal;
|
||||
using MediaBrowser.Model.Cryptography;
|
||||
using MediaBrowser.Model.IO;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using MediaBrowser.Model.Text;
|
||||
using SocketHttpListener.Net.WebSockets;
|
||||
using SocketHttpListener.Primitives;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SocketHttpListener.Net
|
||||
{
|
||||
public sealed unsafe partial class HttpListenerContext
|
||||
{
|
||||
internal HttpListener _listener;
|
||||
private HttpListenerResponse _response;
|
||||
private IPrincipal _user;
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ namespace SocketHttpListener.Net
|
||||
//if (NetEventSource.IsEnabled)
|
||||
// NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_percent_value, codePoint));
|
||||
}
|
||||
catch (EncoderFallbackException e)
|
||||
catch (EncoderFallbackException)
|
||||
{
|
||||
// If utf8Encoding.GetBytes() fails
|
||||
//if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, unicodeString, e.Message));
|
||||
@@ -303,11 +303,11 @@ namespace SocketHttpListener.Net
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (DecoderFallbackException e)
|
||||
catch (DecoderFallbackException)
|
||||
{
|
||||
//if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_bytes, GetOctetsAsString(_rawOctets), e.Message));
|
||||
}
|
||||
catch (EncoderFallbackException e)
|
||||
catch (EncoderFallbackException)
|
||||
{
|
||||
// If utf8Encoding.GetBytes() fails
|
||||
//if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, decodedString, e.Message));
|
||||
|
||||
@@ -299,7 +299,7 @@ namespace SocketHttpListener
|
||||
}
|
||||
OnError.Emit(this, new ErrorEventArgs(message));
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -310,7 +310,7 @@ namespace SocketHttpListener
|
||||
{
|
||||
OnError.Emit(this, new ErrorEventArgs(message));
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -423,7 +423,7 @@ namespace SocketHttpListener
|
||||
|
||||
private bool processPingFrame(WebSocketFrame frame)
|
||||
{
|
||||
var mask = Mask.Unmask;
|
||||
//var mask = Mask.Unmask;
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -796,4 +796,4 @@ namespace SocketHttpListener
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user