{"action":"created","issue":{"url":"https://api.github.com/repos/liuggio/symfony2-rest-api-the-best-2013-way/issues/12","labels_url":"https://api.github.com/repos/liuggio/symfony2-rest-api-the-best-2013-way/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/liuggio/symfony2-rest-api-the-best-2013-way/issues/12/comments","events_url":"https://api.github.com/repos/liuggio/symfony2-rest-api-the-best-2013-way/issues/12/events","html_url":"https://github.com/liuggio/symfony2-rest-api-the-best-2013-way/issues/12","id":46766623,"number":12,"title":"PUTting a resource always returns Content-Type \"text/html\"","user":{"login":"rodrigorigotti","id":387664,"avatar_url":"https://avatars.githubusercontent.com/u/387664?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigorigotti","html_url":"https://github.com/rodrigorigotti","followers_url":"https://api.github.com/users/rodrigorigotti/followers","following_url":"https://api.github.com/users/rodrigorigotti/following{/other_user}","gists_url":"https://api.github.com/users/rodrigorigotti/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigorigotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigorigotti/subscriptions","organizations_url":"https://api.github.com/users/rodrigorigotti/orgs","repos_url":"https://api.github.com/users/rodrigorigotti/repos","events_url":"https://api.github.com/users/rodrigorigotti/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigorigotti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-10-24T18:07:00Z","updated_at":"2015-02-11T10:16:44Z","closed_at":null,"body":"Hello.\r\n\r\nI'm trying to implement a new REST API in my project, but I'm getting the same errors I get when I test `liuggio/symfony2-rest-api-the-best-2013-way`: the `PUT` HTTP calls are always returned as `text/html` (instead of `application/json`), and fail in the `assertJsonResponse` assertion. The other methods always return `application/json`.\r\n\r\nDid anyone have the same problem?\r\n\r\n```\r\nPHPUnit 3.7.38 by Sebastian Bergmann.\r\n\r\nConfiguration read from /Users/rodrigorigotti/Sites/liuggio/symfony2-rest-api-the-best-2013-way/app/phpunit.xml.dist\r\n\r\n.....F.F......\r\n\r\nTime: 4.93 seconds, Memory: 30.75Mb\r\n\r\nThere were 2 failures:\r\n\r\n1) Acme\\BlogBundle\\Tests\\Controller\\PageControllerTest::testJsonPutPageActionShouldModify\r\nAllow:         GET, PUT, PATCH\r\nCache-Control: no-cache\r\nDate:          Fri, 24 Oct 2014 17:46:27 GMT\r\nLocation:      http://localhost/api/v1/pages/16.json\r\nSet-Cookie: MOCKSESSID=5bde664cd92ea4a6054d789e41008cc175afd08a; path=/\r\n\r\nFailed asserting that false is true.\r\n\r\n/Users/rodrigorigotti/Sites/liuggio/symfony2-rest-api-the-best-2013-way/src/Acme/BlogBundle/Tests/Controller/PageControllerTest.php:199\r\n/Users/rodrigorigotti/Sites/liuggio/symfony2-rest-api-the-best-2013-way/src/Acme/BlogBundle/Tests/Controller/PageControllerTest.php:126\r\n\r\n2) Acme\\BlogBundle\\Tests\\Controller\\PageControllerTest::testJsonPatchPageAction\r\nAllow:         GET, PUT, PATCH\r\nCache-Control: no-cache\r\nDate:          Fri, 24 Oct 2014 17:46:27 GMT\r\nLocation:      http://localhost/api/v1/pages/18.json\r\nSet-Cookie: MOCKSESSID=8c619cf2c11c32a72a303eb8cd68ba72fbd0becb; path=/\r\n\r\nFailed asserting that false is true.\r\n\r\n/Users/rodrigorigotti/Sites/liuggio/symfony2-rest-api-the-best-2013-way/src/Acme/BlogBundle/Tests/Controller/PageControllerTest.php:199\r\n/Users/rodrigorigotti/Sites/liuggio/symfony2-rest-api-the-best-2013-way/src/Acme/BlogBundle/Tests/Controller/PageControllerTest.php:175\r\n\r\nFAILURES!\r\nTests: 14, Assertions: 49, Failures: 2.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/liuggio/symfony2-rest-api-the-best-2013-way/issues/comments/73859143","html_url":"https://github.com/liuggio/symfony2-rest-api-the-best-2013-way/issues/12#issuecomment-73859143","issue_url":"https://api.github.com/repos/liuggio/symfony2-rest-api-the-best-2013-way/issues/12","id":73859143,"user":{"login":"daveharding","id":96621,"avatar_url":"https://avatars.githubusercontent.com/u/96621?v=3","gravatar_id":"","url":"https://api.github.com/users/daveharding","html_url":"https://github.com/daveharding","followers_url":"https://api.github.com/users/daveharding/followers","following_url":"https://api.github.com/users/daveharding/following{/other_user}","gists_url":"https://api.github.com/users/daveharding/gists{/gist_id}","starred_url":"https://api.github.com/users/daveharding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveharding/subscriptions","organizations_url":"https://api.github.com/users/daveharding/orgs","repos_url":"https://api.github.com/users/daveharding/repos","events_url":"https://api.github.com/users/daveharding/events{/privacy}","received_events_url":"https://api.github.com/users/daveharding/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T10:16:44Z","updated_at":"2015-02-11T10:16:44Z","body":"I'm having this same problem, did you find a solution?"}}