We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a60a21d commit 5e5bab4Copy full SHA for 5e5bab4
src/eloquent_esp32cam/viz/mjpeg.h
@@ -144,12 +144,11 @@ namespace Eloquent {
144
if (!camera.capture().isOk())
145
continue;
146
147
- client.print("Content-Type: image/jpeg\r\nContent-Length: ");
148
- client.println(camera.frame->len);
149
-
150
if (_onFrame != NULL)
151
_onFrame(&client, camera.frame);
152
+ client.print("Content-Type: image/jpeg\r\nContent-Length: ");
+ client.println(camera.frame->len);
153
client.println();
154
client.write((const char *) camera.frame->buf, camera.frame->len);
155
client.println(F("\r\n--frame"));
0 commit comments