Skip to content

Commit

Permalink
default to 201 for a successful POST
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed May 9, 2010
1 parent 9467436 commit f06e814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/journey.js
Expand Up @@ -285,7 +285,7 @@ journey.Router.prototype = {
request: req,
respond: respond,
baseResponse: {
status: 200,
status: req.method == 'POST' ? 201 : 200,
body: "",
headers: {"Content-Type" : "application/json"}
},
Expand Down

0 comments on commit f06e814

Please sign in to comment.