Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 65832ab

Browse files
committed
Rename argument header -> headers in README
1 parent 7aabe30 commit 65832ab

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {
226226
Callback 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

Comments
 (0)