mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
serve HEAD requests via the fileserver (#735)
This commit is contained in:
@@ -59,5 +59,6 @@ func (m *FileServer) Route(s router.Router) error {
|
||||
// something like "/fileserver/:account_id/:media_type/:media_size/:file_name"
|
||||
fileServePath := fmt.Sprintf("%s/:%s/:%s/:%s/:%s", FileServeBasePath, AccountIDKey, MediaTypeKey, MediaSizeKey, FileNameKey)
|
||||
s.AttachHandler(http.MethodGet, fileServePath, m.ServeFile)
|
||||
s.AttachHandler(http.MethodHead, fileServePath, m.ServeFile)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user