Skip to content

Commit

Permalink
Made ESP8266WebServer::client() return a reference (fixes esp8266#7075)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Feb 13, 2020
1 parent 5efdc77 commit 044279e
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 @@ -101,7 +101,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 044279e

Please sign in to comment.