We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b1c9712 + 3a08226 commit 193b090Copy full SHA for 193b090
README.md
@@ -212,6 +212,9 @@ esp_err_t jpg_stream_httpd_handler(httpd_req_t *req){
212
_jpg_buf = fb->buf;
213
}
214
215
+ if(res == ESP_OK){
216
+ res = httpd_resp_send_chunk(req, _STREAM_BOUNDARY, strlen(_STREAM_BOUNDARY));
217
+ }
218
if(res == ESP_OK){
219
size_t hlen = snprintf((char *)part_buf, 64, _STREAM_PART, _jpg_buf_len);
220
@@ -220,9 +223,6 @@ esp_err_t jpg_stream_httpd_handler(httpd_req_t *req){
223
221
224
res = httpd_resp_send_chunk(req, (const char *)_jpg_buf, _jpg_buf_len);
222
225
- if(res == ESP_OK){
- res = httpd_resp_send_chunk(req, _STREAM_BOUNDARY, strlen(_STREAM_BOUNDARY));
- }
226
if(fb->format != PIXFORMAT_JPEG){
227
free(_jpg_buf);
228
0 commit comments