mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
add missing return HTTPC_ERROR_STREAM_WRITE
This commit is contained in:
@ -985,6 +985,7 @@ int HTTPClient::writeToStreamDataBlock(Stream * stream, int size) {
|
|||||||
|
|
||||||
if((size > 0) && (size != bytesWritten)) {
|
if((size > 0) && (size != bytesWritten)) {
|
||||||
DEBUG_HTTPCLIENT("[HTTP-Client][writeToStreamDataBlock] bytesWritten %d and size %d mismatch!.\n", bytesWritten, size);
|
DEBUG_HTTPCLIENT("[HTTP-Client][writeToStreamDataBlock] bytesWritten %d and size %d mismatch!.\n", bytesWritten, size);
|
||||||
|
return HTTPC_ERROR_STREAM_WRITE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user