Fixed CouchDB setup
This commit is contained in:
parent
0b09869ed7
commit
91750c60b4
@ -146,8 +146,9 @@ function uploadDdoc() {
|
||||
body += chunk;
|
||||
})
|
||||
.on('end', function() {
|
||||
res.statusCode >= 300 && onError('Status code: ' + res.statusCode, body);
|
||||
if(res.statusCode == 200) {
|
||||
ddoc.body._rev = JSON.parse(body)._rev;
|
||||
}
|
||||
var options = {
|
||||
hostname: url.hostname,
|
||||
port: url.port,
|
||||
|
Loading…
Reference in New Issue
Block a user