Hi,
I'm developing a restlet application and I have a ServerResource with only one
Get:
@GET("xml")
public DomRepresentation responseToXML(){}
The GET works, I receive the xml document. However, when I set the Accept
Header to anything different, The ServerResource still sends me the xml. Here's
an example:
curl -H "Accept: application/json" "http://site/users/2"
then I receive the xml, but I should have received nothing or a 404 error.
Am I missing something here?
Is there a way to restrict the response if the Accept Header sent by the client
is not available in the ServerResource?
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2713325