diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-27 15:24:36 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-03-06 21:09:15 +0100 |
commit | b0cce9e6369b0b821c01163a0e4df5552f9924f6 (patch) | |
tree | 001890dc2d7a7c99bf144edf4ffea713aa52a7c2 /src/Wallabag/CoreBundle/Controller | |
parent | 1df1204d94a26cda064886c827a23ba642ebc769 (diff) | |
download | wallabag-b0cce9e6369b0b821c01163a0e4df5552f9924f6.tar.gz wallabag-b0cce9e6369b0b821c01163a0e4df5552f9924f6.tar.zst wallabag-b0cce9e6369b0b821c01163a0e4df5552f9924f6.zip |
fix tests for GET /entries/tags
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/WallabagRestController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php index 81974371..e25ac6db 100644 --- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php | |||
@@ -6,6 +6,7 @@ use Nelmio\ApiDocBundle\Annotation\ApiDoc; | |||
6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
7 | use Symfony\Component\HttpFoundation\Request; | 7 | use Symfony\Component\HttpFoundation\Request; |
8 | use Symfony\Component\HttpFoundation\JsonResponse; | 8 | use Symfony\Component\HttpFoundation\JsonResponse; |
9 | use Symfony\Component\HttpFoundation\Response; | ||
9 | use Wallabag\CoreBundle\Entity\Entry; | 10 | use Wallabag\CoreBundle\Entity\Entry; |
10 | use Wallabag\CoreBundle\Entity\Tag; | 11 | use Wallabag\CoreBundle\Entity\Tag; |
11 | use Wallabag\CoreBundle\Service\Extractor; | 12 | use Wallabag\CoreBundle\Service\Extractor; |
@@ -246,7 +247,7 @@ class WallabagRestController extends Controller | |||
246 | 247 | ||
247 | $json = $this->get('serializer')->serialize($entry->getTags(), 'json'); | 248 | $json = $this->get('serializer')->serialize($entry->getTags(), 'json'); |
248 | 249 | ||
249 | return new JsonResponse($json, 200); | 250 | return new Response($json, 200, array('application/json')); |
250 | } | 251 | } |
251 | 252 | ||
252 | /** | 253 | /** |