Open YoussephAhmed opened 1 year ago
After reading this code more carefully, much of it doesn't make sense too me.
Neither of these variables are being used: mtime
, headers["if-modified-since"]
My guess is that the intention is to compare them against the response file's modified time, but it's not doing that.
Also I don't see "last-modified"
as a key in response.headers
, but maybe that's system dependent?
fixed 2 typos here: 1- if last_modified == response.headers.get("last-modified") (line:34) 2- declare the "last_modified" variable before calling it (line:18)