Changeset 2095

Show
Ignore:
Timestamp:
02/26/2008 07:14:14 PM (5 months ago)
Author:
stbuehler
Message:

Fix the fix #1324/[2086]: if no module handled a request, treat method OPTION as 200, all others as 403.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/lighttpd-1.4.x/src/response.c

    r2093 r2095  
    649649                /* if we are still here, no one wanted the file, status 403 is ok I think */ 
    650650 
    651                 if (con->mode == DIRECT) { 
    652                         con->http_status = 403; 
     651                if (con->mode == DIRECT && con->http_status == 0) { 
     652                        switch (con->request.http_method) { 
     653                        case HTTP_METHOD_OPTIONS: 
     654                                con->http_status = 200; 
     655                                break; 
     656                        default: 
     657                                con->http_status = 403; 
     658                        } 
    653659 
    654660                        return HANDLER_FINISHED;