Skip to content

Commit d7157f3

Browse files
committed
initial bugfixes - issue 186
1 parent e2c901f commit d7157f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ String UniversalTelegramBot::buildCommand(const String& cmd) {
6464

6565
String UniversalTelegramBot::sendGetToTelegram(const String& command) {
6666
String body, headers;
67-
bool avail;
67+
//bool avail; // bugfix FJvK
6868

6969
// Connect with api.telegram.org if not already connected
7070
if (!client->connected()) {
@@ -236,7 +236,7 @@ String UniversalTelegramBot::sendMultipartFormDataToTelegram(
236236
client->print(buildCommand(command));
237237
client->println(F(" HTTP/1.1"));
238238
// Host header
239-
client->print(F("Host: " TELEGRAM_HOST));
239+
client->println(F("Host: " TELEGRAM_HOST)); // bugfix - https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/issues/186
240240
client->println(F("User-Agent: arduino/1.0"));
241241
client->println(F("Accept: */*"));
242242

@@ -268,7 +268,7 @@ String UniversalTelegramBot::sendMultipartFormDataToTelegram(
268268
#endif
269269
byte buffer[512];
270270
int count = 0;
271-
char ch;
271+
//char ch; // bugfix FJvK
272272
while (moreDataAvailableCallback()) {
273273
buffer[count] = getNextByteCallback();
274274
count++;

0 commit comments

Comments
 (0)