Skip to content

Commit

Permalink
Make sure SlicedFile is closed properly
Browse files Browse the repository at this point in the history
Fixes #556
  • Loading branch information
pernofence authored and Archmonger committed Oct 25, 2024
1 parent 6a382da commit 9912566
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/servestatic/responders.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def read(self, size=-1):
return data

def close(self):
super().close()
self.fileobj.close()


Expand Down

0 comments on commit 9912566

Please sign in to comment.