I'm using a 3rd party API that returns the following cache control directive in 
the response "no-cache; private; no-store". When calling the API using a 
Restlet Client in the 2.0.7 release, I get an IOException in 
org.restlet.engine.http.header.HeaderReader.readParameter and only the first 
'no-cache' value comes through. 

If anyone else is seeing this, I researched this problem a bit more and found 
that if the cache directive values are comma separated it seems to work - i.e. 
"no-cache, private, no-store".

Unfortunately for me it is a 3rd party API that I can't change.

Attached is code that can quickly reproduce to help the Restlet team isolate 
further. I'd be happy to enter an issue if this is confirmed to be a bug.

Thanks,
Jim Winfield

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2733742

Attachment: CacheDirectiveReaderTest.java
Description: Binary data

Reply via email to