Skip to content

Commit

Permalink
Made ESP8266WebServer::client() return a reference (fixes #7075) (#7080)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon authored Jul 17, 2020
1 parent 3c1bd65 commit c18f7cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/ESP8266WebServer/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Other Function Calls
const String & uri(); // get the current uri
HTTPMethod method(); // get the current method
WiFiClient client(); // get the current client
WiFiClient & client(); // get the current client
HTTPUpload & upload(); // get the current upload
void setContentLength(); // set content length
void sendHeader(); // send HTTP header
Expand Down
2 changes: 1 addition & 1 deletion libraries/ESP8266WebServer/src/ESP8266WebServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class ESP8266WebServerTemplate

const String& uri() const { return _currentUri; }
HTTPMethod method() const { return _currentMethod; }
ClientType client() { return _currentClient; }
ClientType& client() { return _currentClient; }
HTTPUpload& upload() { return *_currentUpload; }

// Allows setting server options (i.e. SSL keys) by the instantiator
Expand Down

0 comments on commit c18f7cb

Please sign in to comment.