mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-04-21 08:25:54 +03:00
Fix incorrect return value, resulting in compilation error
Error in question: ArduinoHttpClient/src/HttpClient.h: In member function 'virtual void HttpClient::flush()': ArduinoHttpClient/src/HttpClient.h:310:50: error: return-statement with a value, in function returning 'void' [-fpermissive]
This commit is contained in:
parent
1f81c4e8aa
commit
780546745d
@ -168,7 +168,7 @@ public:
|
|||||||
/** Send an additional header line. This can only be called in between the
|
/** Send an additional header line. This can only be called in between the
|
||||||
calls to beginRequest and endRequest.
|
calls to beginRequest and endRequest.
|
||||||
@param aHeader Header line to send, in its entirety (but without the
|
@param aHeader Header line to send, in its entirety (but without the
|
||||||
trailing CRLF. E.g. "Authorization: Basic YQDDCAIGES"
|
trailing CRLF. E.g. "Authorization: Basic YQDDCAIGES"
|
||||||
*/
|
*/
|
||||||
void sendHeader(const char* aHeader);
|
void sendHeader(const char* aHeader);
|
||||||
|
|
||||||
@ -307,7 +307,7 @@ public:
|
|||||||
virtual int read();
|
virtual int read();
|
||||||
virtual int read(uint8_t *buf, size_t size);
|
virtual int read(uint8_t *buf, size_t size);
|
||||||
virtual int peek() { return iClient->peek(); };
|
virtual int peek() { return iClient->peek(); };
|
||||||
virtual void flush() { return iClient->flush(); };
|
virtual void flush() { iClient->flush(); };
|
||||||
|
|
||||||
// Inherited from Client
|
// Inherited from Client
|
||||||
virtual int connect(IPAddress ip, uint16_t port) { return iClient->connect(ip, port); };
|
virtual int connect(IPAddress ip, uint16_t port) { return iClient->connect(ip, port); };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user