File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ String UniversalTelegramBot::buildCommand(const String& cmd) {
64
64
65
65
String UniversalTelegramBot::sendGetToTelegram (const String& command) {
66
66
String body, headers;
67
- bool avail;
67
+ // bool avail; // bugfix FJvK
68
68
69
69
// Connect with api.telegram.org if not already connected
70
70
if (!client->connected ()) {
@@ -236,7 +236,7 @@ String UniversalTelegramBot::sendMultipartFormDataToTelegram(
236
236
client->print (buildCommand (command));
237
237
client->println (F (" HTTP/1.1" ));
238
238
// 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
240
240
client->println (F (" User-Agent: arduino/1.0" ));
241
241
client->println (F (" Accept: */*" ));
242
242
@@ -268,7 +268,7 @@ String UniversalTelegramBot::sendMultipartFormDataToTelegram(
268
268
#endif
269
269
byte buffer[512 ];
270
270
int count = 0 ;
271
- char ch;
271
+ // char ch; // bugfix FJvK
272
272
while (moreDataAvailableCallback ()) {
273
273
buffer[count] = getNextByteCallback ();
274
274
count++;
You can’t perform that action at this time.
0 commit comments