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