You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Doug MacEachern <do...@pobox.com> on 1998/09/25 01:28:49 UTC

default_handler()

This struck me as odd:

    if (r->method_number == M_PUT) {
        return METHOD_NOT_ALLOWED;
    }

    if (r->finfo.st_mode == 0 || (r->path_info && *r->path_info)) {
        ...
        return HTTP_NOT_FOUND;
    }
    if (r->method_number != M_GET) {
        return METHOD_NOT_ALLOWED;
    }

Is there a good reason to check M_PUT too, even though the same thing
happens if r->method_number != M_GET?  Why not check M_GET before checking
if the file exists?  

Just wondering,
-Doug