Ignore:
Timestamp:
Feb 27, 2023, 9:37:08 PM (21 months ago)
Author:
alloc
Message:

Added HTTP method to RequestContext

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/Web.cs

    r412 r415  
    233233
    234234                                RequestContext context = new RequestContext (requestPath, request, response, conn, permissionLevel);
     235
     236                                if (context.Method == ERequestMethod.Other) {
     237                                        context.Response.StatusCode = (int)HttpStatusCode.BadRequest;
     238                                        return;
     239                                }
    235240                               
    236241                                ApplyPathHandler (context);
Note: See TracChangeset for help on using the changeset viewer.