Remove trailing slash from HKP server URL

This commit is contained in:
Yarmo Mackenbach 2021-01-03 19:49:13 +01:00
parent e8d087b119
commit b65711d38b

View file

@ -23,8 +23,8 @@ const mergeOptions = require('merge-options')
const fetchHKP = (identifier, keyserverBaseUrl) => {
return new Promise(async (resolve, reject) => {
keyserverBaseUrl = keyserverBaseUrl
? `https://${keyserverBaseUrl}/`
: 'https://keys.openpgp.org/'
? `https://${keyserverBaseUrl}`
: 'https://keys.openpgp.org'
const hkp = new openpgp.HKP(keyserverBaseUrl)
const lookupOpts = {