Skip to content

Commit c4065da

Browse files
committed
Fix non-chunked data decoding issue #315
1 parent 055ce95 commit c4065da

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "FirebaseClient",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"keywords": "communication, REST, esp32, esp8266, arduino",
55
"description": "Async Firebase Client library for Arduino.",
66
"repository": {

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name=FirebaseClient
22

3-
version=2.2.7
3+
version=2.2.8
44

55
author=Mobizt
66

src/core/AsyncClient/ResponseHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ struct res_handler
463463
val[resns::payload] += (const char *)respCtx.buf;
464464
}
465465

466-
if (!respCtx.isChunked || (respCtx.isChunked && len == 0))
466+
if ((!respCtx.isChunked && respCtx.bytesRemState == 0) || (respCtx.isChunked && len == 0))
467467
{
468468
respCtx.stage = response_stage_finished;
469469
respCtx.freeBuf();

src/core/Core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#undef FIREBASE_CLIENT_VERSION
88
#endif
99

10-
#define FIREBASE_CLIENT_VERSION "2.2.7"
10+
#define FIREBASE_CLIENT_VERSION "2.2.8"
1111

1212
static void sys_idle()
1313
{

0 commit comments

Comments
 (0)