don't convert URL to lower ascii, fixes #3756 (#3757)

This commit is contained in:
Miran 2022-06-16 07:46:43 +02:00 committed by GitHub
parent 9da9fc83ed
commit 13f52488de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -267,11 +267,8 @@ proc fixupWeb3Urls*(web3Url: var string) =
normalizedUrl.startsWith("http://") or normalizedUrl.startsWith("http://") or
normalizedUrl.startsWith("wss://") or normalizedUrl.startsWith("wss://") or
normalizedUrl.startsWith("ws://")): normalizedUrl.startsWith("ws://")):
normalizedUrl = "ws://" & normalizedUrl
warn "The Web3 URL does not specify a protocol. Assuming a WebSocket server", web3Url warn "The Web3 URL does not specify a protocol. Assuming a WebSocket server", web3Url
web3Url = "ws://" & web3Url
# We do this at the end in order to allow the warning above to print the original value
web3Url = normalizedUrl
template toGaugeValue(x: Quantity): int64 = template toGaugeValue(x: Quantity): int64 =
toGaugeValue(distinctBase x) toGaugeValue(distinctBase x)