You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Roy T. Fielding" <fi...@kiwi.ics.uci.edu> on 1998/09/25 01:43:38 UTC

Re: default_handler()

>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?  

It is because of the different type of error response you want to
return if the resource does not exist, versus if it does exist but
doesn't support the method, for everything except PUT (which is
applicable whether or not the resource exists).

Funky, eh?

....Roy