Hi On Wed, Jul 20, 2011 at 7:34 AM, Lutz Horn <[email protected]> wrote: > Hi, > > Am 20.07.2011 03:20, schrieb Barkley, Christopher: >> Should the tag(String) method add the quotes to have consistent >> behavior with the tag(EntityTag) method? > > I think both values are legal according to HTTP/1.1. The content of a > header field can contain: > >> the OCTETs making up the field-value and consisting of either *TEXT >> or combinations of token, separators, and quoted-string> > > http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 > > The value 'foo' (without quotes) is legal, as is '"foo"' (with quotes). > > What happens with a value that dos not pass as a token? > Thanks for this clarification. I don't mind having tag(String) produce the same output as tag(EntityTag) just for consistency's sake. Cheers, Sergey
> Lutz > -- Sergey Beryozkin http://sberyozkin.blogspot.com Talend - http://www.talend.com
