From ccee926d44726301aa9c862caefa1632670cfca4 Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Sat, 26 Feb 2022 13:16:49 +0100 Subject: [PATCH] Add Host to HTTP GET Header --- tasmota/nextion.be | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/nextion.be b/tasmota/nextion.be index b4a7bd5b..c7108310 100644 --- a/tasmota/nextion.be +++ b/tasmota/nextion.be @@ -31,6 +31,7 @@ class TftDownloader self.tcp.connect(self.host, self.port) print("connected:", self.tcp.connected()) self.s = "GET " + self.file + " HTTP/1.0\r\n" + self.s += "HOST: " + self.host + "\r\n" self.s += string.format("Range: bytes=%d-%d\r\n", b_start, (b_start+b_length-1)) print(string.format("Downloading Byte %d - %d", b_start, (b_start+b_length-1))) self.s += "\r\n"