xrpscan / hermes

Project Hermes: XRP Ledger Validation message service
https://xrpscan.com
MIT License
6 stars 4 forks source link

npm run peer add autodetection breaks on trailing slashes #15

Open pkcs8 opened 2 years ago

pkcs8 commented 2 years ago

The code that auto-appends /api/v1/server/config should handle URLs with trailing slashes correctly. In this example:

npm run peer add https://hermes.rippleitin.nz:50588

works, but:

npm run peer add https://hermes.rippleitin.nz:50588/

throws 404 error.

npm-run-peer-add