summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2020-09-03 21:21:04 +0200
committerSolderpunk <solderpunk@sdf.org>2020-09-03 21:21:04 +0200
commit129c56c1d432be53e6d3d25e7f94822267440e77 (patch)
tree4669916fe784445b788273bc34c592513396f900
parentba0f707669e5bdf8b9470f3cb758132fef2b788a (diff)
Fix another hasty cache hack bug.
-rwxr-xr-xav98.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/av98.py b/av98.py
index 1df3a7d..f74b532 100755
--- a/av98.py
+++ b/av98.py
@@ -528,10 +528,10 @@ you'll be able to transparently follow links to Gopherspace!""")
# Maintain cache and log
if self.options["cache"]:
- self._add_to_cache(gi.url, mime, tmpf.name)
+ self._add_to_cache(gi.url, mime, self.tmp_filename)
self._log_visit(gi, address, size)
- return gi, mime, body, tmpf
+ return gi, mime, body, self.tmp_filename
def _send_request(self, gi):
"""Send a selector to a given host and port.