By specification, HTTP response 304 Not Modified has no entity.

However, getEntity() on the BasicHttpResponse still returns a non-null
entity. Trying to getContent() and read() then blocks. The same happens
if one tries to send the response with
HttpServerConnection.sendResponseEntity(response).

Is this supposed to be correct behavior? In other words, must the
programmer be aware of which responses might have an entity? Why can't
he rely on the return value of getEntity()?


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to