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?

Lutz

Reply via email to