Browse files

making a new talk comment give a 201 Created status code response, wi…

…th a Location
  • Loading branch information...
1 parent a67c94b commit 53dff1c609c220d8af6f9e98e009c3b41457eb5e @lornajane lornajane committed Mar 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/api-v2/controllers/TalksController.php
View
2 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 {

0 comments on commit 53dff1c

Please sign in to comment.