Permalink
Browse files

just return a 201

  • Loading branch information...
1 parent c0e4f9f commit ecdb047e34f17ed04087aa6b7550c75f7ece1e61 @portertech committed Aug 6, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/api.js
  2. +1 −1 lib/public/scripts/main.js
View
@@ -44,7 +44,7 @@ api.post('/streams', function(req, res) {
var stream = db.find('streamName', name).pop()
if (!stream || stream.streamEnabled == false) {
new models.stream(name)
- res.send(201, name)
+ res.send(201)
} else {
res.send(409)
}
@@ -223,7 +223,7 @@ $(document).ready(function() {
if (XMLHttpRequest.status == '201') {
// Created
var stream = {
- 'ID': data,
+ 'ID': stream_name,
'Name': stream_name,
'Terms': new Array(),
'Forwarding': {

0 comments on commit ecdb047

Please sign in to comment.