Skip to content

Commit a3762f7

Browse files
authored
fix #1959 strip trailing slashes from url (#1973)
1 parent c492618 commit a3762f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wallets/lnbits/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function createInvoice (
3333
out: false
3434
})
3535

36-
let hostname = url.replace(/^https?:\/\//, '')
36+
let hostname = url.replace(/^https?:\/\//, '').replace(/\/+$/, '')
3737
const agent = getAgent({ hostname })
3838

3939
if (process.env.NODE_ENV !== 'production' && hostname.startsWith('localhost:')) {

0 commit comments

Comments
 (0)