[Ocs] OCS and MIME types

Henri Bergius henri.bergius at iki.fi
Thu Jun 16 08:20:29 PDT 2011


Hi,

While doing the API tests, I noticed the OCS test server returns all
content with text/html MIME type. This may be a problem for some
clients, and so tests report this as an error.

Example:

  CONTENT Content item A GET to /v1/content/data
    ✓ should respond with 200
    ✗ result needs to be in application/xml format
      » expected 'application/xml',
	got	 'text/html' (==) // api-easy.js:225
    ✓ result needs to follow specification
  CONTENT Content item JSON A GET to /v1/content/data?format=json
    ✓ should respond with 200
    ✗ result needs to be in application/json format
      » expected 'application/json',
	got	 'text/html' (==) // api-easy.js:225
    ✓ result needs to follow specification


-- 
Henri Bergius
Motorcycle Adventures and Free Software
http://bergie.iki.fi/

Jabber: henri.bergius at gmail.com
Microblogs: @bergie


More information about the Ocs mailing list