Skip to content

Commit 7805467

Browse files
forGGesandeepmistry
authored andcommitted
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]
1 parent 1f81c4e commit 7805467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HttpClient.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class HttpClient : public Client
168168
/** Send an additional header line. This can only be called in between the
169169
calls to beginRequest and endRequest.
170170
@param aHeader Header line to send, in its entirety (but without the
171-
trailing CRLF. E.g. "Authorization: Basic YQDDCAIGES"
171+
trailing CRLF. E.g. "Authorization: Basic YQDDCAIGES"
172172
*/
173173
void sendHeader(const char* aHeader);
174174

@@ -307,7 +307,7 @@ class HttpClient : public Client
307307
virtual int read();
308308
virtual int read(uint8_t *buf, size_t size);
309309
virtual int peek() { return iClient->peek(); };
310-
virtual void flush() { return iClient->flush(); };
310+
virtual void flush() { iClient->flush(); };
311311

312312
// Inherited from Client
313313
virtual int connect(IPAddress ip, uint16_t port) { return iClient->connect(ip, port); };

0 commit comments

Comments
 (0)