Skip to content

Commit

Permalink
fix stupid binary shit
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed May 4, 2024
1 parent 1c27c04 commit 4d4db8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def request(self, flow: http.HTTPFlow) -> None:
logging.info('Received cache request: {0}'.format(path))
if os.path.isfile(path):
logging.info('Cache hit: {0}'.format(path))
with open(path, 'r') as cache_file:
with open(path, 'rb') as cache_file:
cache_content = cache_file.read()
flow.response = http.Response.make(200, cache_content)
return
Expand Down

0 comments on commit 4d4db8f

Please sign in to comment.