[Ocs] OCS and MIME types
Frank Karlitschek
karlitschek at kde.org
Fri Jun 17 02:49:43 PDT 2011
I agree.
This should be fixed with 2.0
Cheers
Frank
On 16.06.2011, at 17:20, Henri Bergius wrote:
> 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
> _______________________________________________
> Ocs mailing list
> Ocs at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ocs
--
Frank Karlitschek
karlitschek at kde.org
More information about the Ocs
mailing list