The Free Software Media System - Server Backend & API
Removed unnecessary unsafe keywords.
Erwin de Haanfee42e883c60
diff --git a/SocketHttpListener/Net/HttpListenerContext.Managed.cs b/SocketHttpListener/Net/HttpListenerContext.Managed.csindex 29b0a7ae24..79742bf37f 100644--- a/SocketHttpListener/Net/HttpListenerContext.Managed.cs+++ b/SocketHttpListener/Net/HttpListenerContext.Managed.cs@@ -1,4 +1,4 @@-using System;+using System;using System.ComponentModel;using System.Security.Principal;using System.Text;@@ -7,7 +7,7 @@ using SocketHttpListener.Net.WebSockets;namespace SocketHttpListener.Net{- public sealed unsafe partial class HttpListenerContext+ public sealed partial class HttpListenerContext{private HttpConnection _connection;diff --git a/SocketHttpListener/Net/HttpListenerContext.cs b/SocketHttpListener/Net/HttpListenerContext.csindex 8045299c62..d84e2d1aa0 100644--- a/SocketHttpListener/Net/HttpListenerContext.cs+++ b/SocketHttpListener/Net/HttpListenerContext.cs@@ -6,7 +6,7 @@ using SocketHttpListener.Net.WebSockets;namespace SocketHttpListener.Net{- public sealed unsafe partial class HttpListenerContext+ public sealed partial class HttpListenerContext{private HttpListenerResponse _response;private IPrincipal _user;diff --git a/SocketHttpListener/Net/HttpListenerRequest.cs b/SocketHttpListener/Net/HttpListenerRequest.csindex 4924a7fa86..faeca78b25 100644--- a/SocketHttpListener/Net/HttpListenerRequest.cs+++ b/SocketHttpListener/Net/HttpListenerRequest.cs@@ -8,7 +8,7 @@ using SocketHttpListener.Net.WebSockets;namespace SocketHttpListener.Net{- public sealed unsafe partial class HttpListenerRequest+ public sealed partial class HttpListenerRequest{private CookieCollection _cookies;private bool? _keepAlive;diff --git a/SocketHttpListener/Net/HttpListenerResponse.cs b/SocketHttpListener/Net/HttpListenerResponse.csindex a32aca0433..66ef885643 100644--- a/SocketHttpListener/Net/HttpListenerResponse.cs+++ b/SocketHttpListener/Net/HttpListenerResponse.cs@@ -5,7 +5,7 @@ using System.Text;namespace SocketHttpListener.Net{- public sealed unsafe partial class HttpListenerResponse : IDisposable+ public sealed partial class HttpListenerResponse : IDisposable{private BoundaryType _boundaryType = BoundaryType.None;private CookieCollection _cookies;diff --git a/SocketHttpListener/Net/WebHeaderEncoding.cs b/SocketHttpListener/Net/WebHeaderEncoding.csindex b65ff3c0d5..96e0cc85d8 100644--- a/SocketHttpListener/Net/WebHeaderEncoding.cs+++ b/SocketHttpListener/Net/WebHeaderEncoding.cs@@ -71,7 +71,7 @@ namespace SocketHttpListener.Net}}}- internal static unsafe byte[] GetBytes(string myString)+ internal static byte[] GetBytes(string myString){byte[] bytes = new byte[myString.Length];if (myString.Length != 0)