W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2009

Re: Weak ETag handling

From: David Morris <dwm@xpasc.com>
Date: Tue, 3 Feb 2009 11:09:38 -0800 (PST)
cc: ietf-http-wg@w3.org
Message-ID: <Pine.LNX.4.64.0902031107560.3418@egate.xpasc.com>



On Tue, 3 Feb 2009, Lisa Dusseault wrote:

> I know I've ranted about this before, but just ran across it in code again
> today:
>
>        etag.weak = (value[:2] == "W/")
>
>        if etag.weak:
>            etag.tag = value[2:]
>        else:
>            etag.tag = value
>
>
> Stripping the "W/" off a weak etag to get a strong one, because it works
> with Apache.

Actually, from this piece of code, we can't tell if 'weak' is ignored 
since the flag 'etag.weak' will retain the weak status. This may just
be related to making other comparisons easier?

Dave Morris
Received on Tuesday, 3 February 2009 19:10:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:01 GMT