Skip to content

Commit

Permalink
Nano8.2.0 (#318)
Browse files Browse the repository at this point in the history
* swap out db.head for db.request to avoid Nano 8.2.x incompatibility
Co-Authored-By: Rich Ellis <[email protected]>

* added to changes.md

* Update app.js to keep the HEAD request

* Updated copyright
Co-authored-by: Rich Ellis <[email protected]>
  • Loading branch information
glynnbird authored Feb 28, 2020
1 parent 3b212c0 commit aa6e609
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 2.5.2-SNAPSHOT (2020-02-28)
- [FIXED] Issue with compatibility with Nano 8.2.0.

# 2.5.1 (2019-12-06)
- [FIXED] Issue with incorrect handling of percent-encoded user info characters
via @cloudant/cloudant dependency.
Expand Down
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2017, 2018 IBM Corp. All rights reserved.
// Copyright © 2017, 2020 IBM Corp. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -160,7 +160,7 @@ function addEventListener(indicator, emitter, event, f) {
@param {function(err)} callback - error is undefined if DB exists
*/
function proceedIfDbValid(db, callback) {
db.head('', function(err) {
db.server.request({ db: db.config.db, method: 'HEAD' }, function(err) {
err = error.convertResponseError(err, function(err) {
if (err && err.statusCode === 404) {
// Override the error type and mesasge for the DB not found case
Expand Down

0 comments on commit aa6e609

Please sign in to comment.