Allow HEAD requests on public files (#26047)
Fixes https://github.com/mattermost/mattermost/issues/25666 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8151c011d1
Коммит
547bcff064
@@ -41,7 +41,7 @@ func (api *API) InitFile() {
|
||||
|
||||
api.BaseRoutes.Team.Handle("/files/search", api.APISessionRequiredDisableWhenBusy(searchFiles)).Methods("POST")
|
||||
|
||||
api.BaseRoutes.PublicFile.Handle("", api.APIHandler(getPublicFile)).Methods("GET")
|
||||
api.BaseRoutes.PublicFile.Handle("", api.APIHandler(getPublicFile)).Methods("GET", "HEAD")
|
||||
}
|
||||
|
||||
func parseMultipartRequestHeader(req *http.Request) (boundary string, err error) {
|
||||
|
||||
Ссылка в новой задаче
Block a user