Microsoft.AspNetCore.SignalR.Transports.ForeverTransport.EnsureFormContentType C# (CSharp) Method

EnsureFormContentType() protected method

protected EnsureFormContentType ( ) : void
return void
        protected void EnsureFormContentType()
        {
            // Managed SignalR 2.x clients don't set content type which prevents from parsing the body as a form
            if (string.IsNullOrEmpty(Context.Request.ContentType))
            {
                Context.Request.ContentType = FormContentType;
            }
        }