From 53dff1c609c220d8af6f9e98e009c3b41457eb5e Mon Sep 17 00:00:00 2001 From: Lorna Mitchell Date: Mon, 4 Mar 2013 21:44:18 +0000 Subject: [PATCH] making a new talk comment give a 201 Created status code response, with a Location --- src/api-v2/controllers/TalksController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-v2/controllers/TalksController.php b/src/api-v2/controllers/TalksController.php index acb5f8f7..eadcd7c6 100644 --- a/src/api-v2/controllers/TalksController.php +++ b/src/api-v2/controllers/TalksController.php @@ -72,7 +72,7 @@ protected function postAction($request, $db) { $data['rating'] = $rating; $comment_mapper->save($data); - header("Location: " . $request->base . $request->path_info); + header("Location: " . $request->base . $request->path_info, true, 201); exit; } } else {