Skip to content

Commit aa6e609

Browse files
authored
Nano8.2.0 (#318)
* swap out db.head for db.request to avoid Nano 8.2.x incompatibility Co-Authored-By: Rich Ellis <ricellis@users.noreply.github.com> * added to changes.md * Update app.js to keep the HEAD request * Updated copyright Co-authored-by: Rich Ellis <ricellis@users.noreply.github.com>
1 parent 3b212c0 commit aa6e609

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGES.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2.5.2-SNAPSHOT (2020-02-28)
2+
- [FIXED] Issue with compatibility with Nano 8.2.0.
3+
14
# 2.5.1 (2019-12-06)
25
- [FIXED] Issue with incorrect handling of percent-encoded user info characters
36
via @cloudant/cloudant dependency.

app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2017, 2018 IBM Corp. All rights reserved.
1+
// Copyright © 2017, 2020 IBM Corp. All rights reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -160,7 +160,7 @@ function addEventListener(indicator, emitter, event, f) {
160160
@param {function(err)} callback - error is undefined if DB exists
161161
*/
162162
function proceedIfDbValid(db, callback) {
163-
db.head('', function(err) {
163+
db.server.request({ db: db.config.db, method: 'HEAD' }, function(err) {
164164
err = error.convertResponseError(err, function(err) {
165165
if (err && err.statusCode === 404) {
166166
// Override the error type and mesasge for the DB not found case

0 commit comments

Comments
 (0)