users@jersey.java.net

[Jersey] Re: HTTP 304 is silently dropping the entity

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Fri, 25 Nov 2011 11:29:41 -0800 (PST)

Gili wrote
>
> Hi,
>
> I've defined a @PUT method which returns:
>
> Response.notModified().entity("test").build();
>
> When I examined the response, I noticed that the entity is missing. When I
> replace notModified() by ok() or serverError() the entity shows up. Why is
> notModified() dropping the entity? I'd like to provide clients an
> explanation of why the resource was not modified.
>
> Thanks,
> Gili
>

I filed a bug report: http://java.net/jira/browse/JERSEY-845

Gili

--
View this message in context: http://jersey.576304.n2.nabble.com/HTTP-304-is-silently-dropping-the-entity-tp7032018p7032208.html
Sent from the Jersey mailing list archive at Nabble.com.