On Thu, Mar 26, 2009 at 9:38 PM, Simon Laws <[email protected]> wrote:
> I'm getting a failure in ContentNegotiationTest.testXMLFeedGet().
> Abdera is bailing out as it can't find an etag of a suitable format in
> the response. What's coming back is
>
> ETag: customers23999306
>
> While keeps it happy is.
>
> ETag: "customers23999306"
>
> However there's something I'm not understanding here as I assume this
> must have worked in the past.
>
> Regards
>
> Simon
>

Looking at the HTTP specs it seems that the ETag is expected to be a
quoted string.

 from [1]

       ETag = "ETag" ":" entity-tag

from [2]

      entity-tag = [ weak ] opaque-tag
      weak       = "W/"
      opaque-tag = quoted-string

from [3]

       quoted-string  = ( <"> *(qdtext | quoted-pair ) <"> )
       qdtext         = <any TEXT except <">>

So I'll fix the code to make this so.

Regards

Simon


[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
[2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html
[3] http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html

Reply via email to