mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 11:12:24 -06:00
serve HEAD requests via the fileserver (#735)
This commit is contained in:
parent
72650e49f7
commit
8fdc9ed552
2 changed files with 16 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue