1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Fix webfinger validator

This commit is contained in:
Chocobozzz 2017-12-21 10:16:20 +01:00
parent 225a89c2af
commit 604abfbef5
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 2 additions and 5 deletions

View file

@ -27,7 +27,7 @@ function sanitizeUrl (url: string) {
// Don't import remote scheme from constants because we are in core utils
function sanitizeHost (host: string, remoteScheme: string) {
let toRemove = remoteScheme === 'https' ? 443 : 80
const toRemove = remoteScheme === 'https' ? 443 : 80
return host.replace(new RegExp(`:${toRemove}$`), '')
}