We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c492618 commit a3762f7Copy full SHA for a3762f7
wallets/lnbits/server.js
@@ -33,7 +33,7 @@ export async function createInvoice (
33
out: false
34
})
35
36
- let hostname = url.replace(/^https?:\/\//, '')
+ let hostname = url.replace(/^https?:\/\//, '').replace(/\/+$/, '')
37
const agent = getAgent({ hostname })
38
39
if (process.env.NODE_ENV !== 'production' && hostname.startsWith('localhost:')) {
0 commit comments