Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Commit

Permalink
making a new talk comment give a 201 Created status code response, wi…
Browse files Browse the repository at this point in the history
…th a Location
  • Loading branch information
lornajane committed Mar 4, 2013
1 parent a67c94b commit 53dff1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api-v2/controllers/TalksController.php
Expand Up @@ -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 {
Expand Down

0 comments on commit 53dff1c

Please sign in to comment.