Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] org.eclipse.jetty.http.HttpField

After debugging for a weird problem the entire day yesterday, I finally figured out why my ETag value was losing its quotes. For some reason, the innocently sounding HttpField.getValues apparently (needlessly?) appears to assume that comma separated header values might be quoted (not sure why, I don’t think it’s spec), and thus removes required quotes from etags, causing parsing failure later.

So, e.g. this header:

If-Match: "ab35ef1bc78", "5be73a9c523"

will return invalid ETag values (unquoted).

I would consider this a bug, but not sure why quote removal is even there, as I don’t see the HTTP spec requiring quotes around comma separated values.


Back to the top