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;
|
||||
})
|
||||
.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