Re: If-Match header question

Wilfredo Sánchez Vega wrote:
>   RFC 2068 12.25 says that for the If-Match header, one should  respond 
> with 412 (precondition failed) if the header doesn't match up  with the 
> ETag of the resource.  OK, cool.

Actually, what's relevant is RFC2616 which obsoletes RFC2068.

>   However, it goes on to say that if, without the If-Match header,  the 
> request would have resulted in a 200-series response, that the  header 
> must be ignored.

..other than a 2xx or a 412 
(<http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.14.24.p.6>):

"If the request would, without the If-Match header field, result in 
anything other than a 2xx or 412 status, then the If-Match header MUST 
be ignored."

So this has indeed been fixed.

 > ...

Best regards, Julian

Received on Tuesday, 23 August 2005 16:13:01 UTC