diff --git a/ocproxy/api/api.go b/ocproxy/api/api.go index 5abbb46..d3de703 100644 --- a/ocproxy/api/api.go +++ b/ocproxy/api/api.go @@ -154,7 +154,7 @@ func (p *proxy) registerRoutes() { // public link routes p.router.HandleFunc("/index.php/s/{token}", p.renderPublicLink).Methods("GET", "POST") - p.router.HandleFunc("/index.php/s/{token}/download", p.plAuth(p.downloadArchivePL)).Methods("GET") + p.router.HandleFunc("/index.php/s/{token}/download", p.plAuth(p.downloadArchivePL)).Methods("GET", "HEAD") p.router.HandleFunc("/index.php/apps/files_sharing/ajax/publicpreview.php", p.tokenAuth(p.getPublicPreview)).Methods("GET") // app routes