Hi,

a couple of service controllers return XML to an HTML request. This is
usually done as

  respond_to do |format|
    format.html { render :xml => ... } #return xml only
    ...
  end
  
As coded above, the HTTP reply header reports "text/html" with the
reply body containing XML.
This is wrong and not RESTful (can we say RESTless ? ;-))


The service should always respond with a resource representation that
was requested from the client. If this is not possible, a default
representation (i.e. json) should be choosen.

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

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

Reply via email to