URL.protocol return with a colon at the end

This commit is contained in:
Sebastian 2023-05-05 13:20:27 -03:00
parent 9a412260f3
commit a0bf83fbb5
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069

View File

@ -72,7 +72,7 @@ export class HttpLibImpl implements HttpRequestLibrary {
`request to origin ${parsedUrl.origin} was throttled`,
);
}
if (!this.allowHttp && parsedUrl.protocol !== "https") {
if (!this.allowHttp && parsedUrl.protocol !== "https:") {
throw TalerError.fromDetail(
TalerErrorCode.WALLET_NETWORK_ERROR,
{