chore: prepare GoodBuddy 0.8.5
This commit is contained in:
@@ -52,16 +52,7 @@ function normalizedEndpoint(input: string): string {
|
||||
if (!['http:', 'https:'].includes(url.protocol)) {
|
||||
throw new RangeError('endpoint must use HTTP or HTTPS')
|
||||
}
|
||||
if (
|
||||
url.username ||
|
||||
url.password ||
|
||||
url.search ||
|
||||
url.hash
|
||||
) {
|
||||
throw new RangeError(
|
||||
'endpoint must not contain credentials, a query, or a fragment'
|
||||
)
|
||||
}
|
||||
url.hash = ''
|
||||
return url.toString()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user