1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-02 16:58:30 +00:00

Set Content-Length for HEAD requests

This commit is contained in:
Unrud 2022-01-15 22:32:38 +01:00
parent a26dcf3188
commit 2a29ad6a17
3 changed files with 8 additions and 6 deletions

View file

@ -27,5 +27,4 @@ class ApplicationPartHead(ApplicationPartGet, ApplicationBase):
def do_HEAD(self, environ: types.WSGIEnviron, base_prefix: str, path: str,
user: str) -> types.WSGIResponse:
"""Manage HEAD request."""
status, headers, _ = self.do_GET(environ, base_prefix, path, user)
return status, headers, None
return self.do_GET(environ, base_prefix, path, user)