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 fa7c213 commit 3bda0f6Copy full SHA for 3bda0f6
packages/jumpstarter/jumpstarter/streams/encoding.py
@@ -206,6 +206,12 @@ async def __anext__(self) -> bytes:
206
chunk = await self.source.__anext__()
207
except StopAsyncIteration:
208
self._exhausted = True
209
+ # Flush any remaining data from decompressor (gzip needs this)
210
+ if self._decompressor is not None and hasattr(self._decompressor, "flush"):
211
+ remaining = self._decompressor.flush()
212
+ self._decompressor = None
213
+ if remaining:
214
+ return remaining
215
raise
216
217
if self._decompressor is not None:
0 commit comments