Skip to content

Commit

Permalink
Fix "Tiny file blobs causes error" (#139)
Browse files Browse the repository at this point in the history
* Fix "Tiny file blobs causes error"
  • Loading branch information
oittaa authored Feb 17, 2022
1 parent afb716f commit dab9e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcp_storage_emulator/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def _read_raw_data(request_handler):

while True:
line = request_handler.rfile.readline().strip()
chunk_size = int(line, 16)
chunk_size = int(line, 16) if line else 0
if chunk_size == 0:
break

Expand Down

0 comments on commit dab9e1c

Please sign in to comment.