1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

fix some warnings

typo
This commit is contained in:
Markus Sattler 2015-11-25 20:29:05 +01:00
parent 680c7330d3
commit 3b6512ea1d

View File

@ -36,7 +36,10 @@ httpClient::httpClient() {
_tcp = NULL; _tcp = NULL;
_tcps = NULL; _tcps = NULL;
_port = 0;
_reuse = false; _reuse = false;
_https = false;
_headerKeysCount = 0; _headerKeysCount = 0;
_currentHeaders = NULL; _currentHeaders = NULL;
@ -345,7 +348,7 @@ int httpClient::writeToStream(Stream * stream) {
DEBUG_HTTPCLIENT("[HTTP-Client][writeToStream] connection closed or file end (written: %d).\n", bytesWritten); DEBUG_HTTPCLIENT("[HTTP-Client][writeToStream] connection closed or file end (written: %d).\n", bytesWritten);
if(_size && _size != bytesWritten) { if(_size && _size != bytesWritten) {
DEBUG_HTTPCLIENT("[HTTP-Client][writeToStream] bytesWritten %d and size %d missmatch!.\n", bytesWritten, _size); DEBUG_HTTPCLIENT("[HTTP-Client][writeToStream] bytesWritten %d and size %d mismatch!.\n", bytesWritten, _size);
} }
end(); end();
@ -362,7 +365,7 @@ String httpClient::getString(void) {
if(_size) { if(_size) {
// try to reserve needed memmory // try to reserve needed memmory
if(!sstring.reserve((_size + 1))) { if(!sstring.reserve((_size + 1))) {
DEBUG_HTTPCLIENT("[HTTP-Client][getString] too less memory to resive as string! need: %d\n", (_size + 1)); DEBUG_HTTPCLIENT("[HTTP-Client][getString] too less memory to reserve as string! need: %d\n", (_size + 1));
return String("--too less memory--"); return String("--too less memory--");
} }
} }
@ -511,7 +514,7 @@ bool httpClient::sendHeader(const char * type) {
} }
header += "\r\n" + _Headers + "\r\n"; header += "\r\n" + _Headers + "\r\n";
return _tcp->write(header.c_str(), header.length()); return (_tcp->write(header.c_str(), header.length()) == header.length());
} }
/** /**