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 committed Oct 21, 2024
1 parent 946a95e commit 16c180d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/whitenoise/responders.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def read(self, size=-1):
return data

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


Expand Down

0 comments on commit 16c180d

Please sign in to comment.