From 13f52488de517c5a651c98ab82d9cfccec68c539 Mon Sep 17 00:00:00 2001 From: Miran Date: Thu, 16 Jun 2022 07:46:43 +0200 Subject: [PATCH] don't convert URL to lower ascii, fixes #3756 (#3757) --- beacon_chain/eth1/eth1_monitor.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/beacon_chain/eth1/eth1_monitor.nim b/beacon_chain/eth1/eth1_monitor.nim index 762525ff6..c099a81ac 100644 --- a/beacon_chain/eth1/eth1_monitor.nim +++ b/beacon_chain/eth1/eth1_monitor.nim @@ -267,11 +267,8 @@ proc fixupWeb3Urls*(web3Url: var string) = normalizedUrl.startsWith("http://") or normalizedUrl.startsWith("wss://") or normalizedUrl.startsWith("ws://")): - normalizedUrl = "ws://" & normalizedUrl warn "The Web3 URL does not specify a protocol. Assuming a WebSocket server", web3Url - - # We do this at the end in order to allow the warning above to print the original value - web3Url = normalizedUrl + web3Url = "ws://" & web3Url template toGaugeValue(x: Quantity): int64 = toGaugeValue(distinctBase x)