@@ -107,7 +107,7 @@ cloudant.db.destroy('alice', function(err) {
107107 var alice = cloudant .db .use (' alice' )
108108
109109 // ...and insert a document in it.
110- alice .insert ({ crazy: true }, ' panda' , function (err , body , header ) {
110+ alice .insert ({ crazy: true }, ' panda' , function (err , body , headers ) {
111111 if (err) {
112112 return console .log (' [alice.insert] ' , err .message );
113113 }
@@ -226,7 +226,7 @@ Cloudant({account:me, password:password}, function(err, cloudant) {
226226Callback functions receive three arguments:
227227
228228``` js
229- function (err , body , header ) {}
229+ function (err , body , headers ) {}
230230```
231231
232232* ` err ` - The _ error_ (if any). For example, fetching a document that doesn't exist:
@@ -273,7 +273,7 @@ As shown above, the corresponding database `request`, `headers` and `statusCode`
273273* ` body ` - The HTTP _ response body_ (if no error). For example:
274274
275275``` js
276- cloudant .db .list (function (err , body , header ) {
276+ cloudant .db .list (function (err , body , headers ) {
277277 console .log (body);
278278});
279279```
@@ -282,11 +282,11 @@ cloudant.db.list(function(err, body, header) {
282282[ '_replicator', '_users' ]
283283```
284284
285- * ` header ` - The HTTP _ response header _ (if no error). For example:
285+ * ` headers ` - The HTTP _ response headers _ (if no error). For example:
286286
287287``` js
288- cloudant .db .list (function (err , body , header ) {
289- console .log (header );
288+ cloudant .db .list (function (err , body , headers ) {
289+ console .log (headers );
290290});
291291```
292292
@@ -1052,7 +1052,7 @@ Cloudant({account:me, password:password}, function(er, cloudant) {
10521052 // specify the database we are going to use
10531053 var alice = cloudant.db.use('alice')
10541054 // and insert a document in it
1055- alice.insert({ crazy: true }, 'panda', function(err, body, header ) {
1055+ alice.insert({ crazy: true }, 'panda', function(err, body, headers ) {
10561056 if (err)
10571057 return console.log('[alice.insert] ', err.message)
10581058
0 commit comments