Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…th a Location
  • Loading branch information...
commit 53dff1c609c220d8af6f9e98e009c3b41457eb5e 1 parent a67c94b
@lornajane lornajane authored
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.
Something went wrong with that request. Please try again.