Hi!
I upgraded to 1.1.4. (from 1.0.3.1) and my Atom feeds started behaving
weirdly.
I return 304 http code if feed hasn't changed:
r =
Response.status(Response.Status.NOT_MODIFIED).lastModified(lastCheck).build();
But the calling client receives http code 200 when I use Jersey 1.1.4:
ClientResponse r =
resource.path("/containers/SystemTestContainer/eventfeed").header("If-Modified-Since",
" Fri, 13 Nov 2009 16:39:57 GMT
").accept(MediaType.APPLICATION_ATOM_XML).type(
MediaType.APPLICATION_ATOM_XML).get(ClientResponse.class);
int status = r.getStatus();
System.out.println("status: " + status);
With Jersey 1.0.3.1. I receive 304 correctly.
Any ideas what I would be doing wrong? I have OSGi environment, and I had
updated all dependencies from jersey 1.1.4. archive.
--
View this message in context: http://n2.nabble.com/1-1-4-response-codes-with-Atom-feeds-tp3998025p3998025.html
Sent from the Jersey mailing list archive at Nabble.com.