1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Made ESP8266WebServer::client() return a reference (fixes #7075) (#7080)

This commit is contained in:
Benoît Blanchon 2020-07-17 02:13:29 +02:00 committed by GitHub
parent 3c1bd65a76
commit c18f7cb1e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -103,7 +103,7 @@ public:
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