Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7805467

Browse filesBrowse 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
Copy full SHA for 7805467

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/HttpClient.h

Copy file name to clipboardExpand all lines: src/HttpClient.h
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.