Skip to content

Commit b584f5f

Browse files
MichaelBellhasenradball
authored andcommitted
ESP8266 Web Server: Fix missing implementation of send stream by reference (esp8266#8533)
1 parent 720b56c commit b584f5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/ESP8266WebServer/src/ESP8266WebServer.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ class ESP8266WebServerTemplate
171171
void send_P(int code, PGM_P content_type, PGM_P content, size_t contentLength);
172172

173173
void send(int code, const char* content_type, Stream* stream, size_t content_length = 0);
174-
void send(int code, const char* content_type, Stream& stream, size_t content_length = 0);
174+
void send(int code, const char* content_type, Stream& stream, size_t content_length = 0) {
175+
send(code, content_type, &stream, content_length);
176+
}
175177

176178
void setContentLength(const size_t contentLength);
177179
void sendHeader(const String& name, const String& value, bool first = false);

0 commit comments

Comments
 (0)