Aufgrund einer Wartung wird GitLab am 19.10. zwischen 8:00 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 19.10. between 8:00 and 9:00 am.

Commit 718604cf authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

[fs] FSController.getfile: added watch_id support

parent da27efbb
......@@ -58,6 +58,14 @@ class FSController(AbstractController):
if not stat.S_ISREG(stats.st_mode):
raise cherrypy.HTTPError(404, "Not a File!")
if "watch_id" in kwargs:
# Set the Last-Modified response header, so that
# modified-since validation code can work.
headers = cherrypy.response.headers
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment