Skip to content

Commit 3ef793e

Browse files
committed
Fixed do_POST computation of remaining bytes
Fixes #42
1 parent 9863914 commit 3ef793e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonrpclib/SimpleJSONRPCServer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def do_POST(self):
442442
if not raw_chunk:
443443
break
444444
chunks.append(utils.from_bytes(raw_chunk))
445-
size_remaining -= len(chunks[-1])
445+
size_remaining -= len(raw_chunk)
446446
data = ''.join(chunks)
447447

448448
try:

0 commit comments

Comments
 (0)