mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 11:42:23 +08:00
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