Compare commits

..

No commits in common. "96df91bd53abb55da1663d45d7808c140b75e034" and "9e49f743f90a3cf35d22061eb3e3683844bbeabb" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -281,7 +281,7 @@ public class WebServer
WebContext context = new WebContext((WebApplication)Application.Instance, new WebRequest(version, requestMethod, path, headers, pathVariables, form), new WebResponse(), session);
context.Response.Cookies.Add("JSESSIONID", cookieValue, WebCookieScope.FromPath("/"), WebCookieSecurity.Secure | WebCookieSecurity.HttpOnly, WebCookieSameSite.None);
WebServerProcessRequestEventArgs e = new WebServerProcessRequestEventArgs(this, client, context);
WebServerProcessRequestEventArgs e = new WebServerProcessRequestEventArgs(client, context);
OnProcessRequest(e);
if (e.Handled)
{

View File

@ -7,13 +7,11 @@ namespace MBS.Web;
public class WebServerProcessRequestEventArgs : EventArgs
{
public WebServer Server { get; }
public WebContext Context { get; }
public bool Handled { get; set; } = false;
public WebServerProcessRequestEventArgs(WebServer server, System.Net.Sockets.TcpClient client, WebContext context)
public WebServerProcessRequestEventArgs(System.Net.Sockets.TcpClient client, WebContext context)
{
Server = server;
Context = context;
}