Automatic Merge
Этот коммит содержится в:
Mahmudul Haque
2021-02-09 23:52:27 +06:00
коммит произвёл GitHub
родитель 0abceccb58
Коммит 7dd4d4859b
11 изменённых файлов: 81 добавлений и 106 удалений

Просмотреть файл

@@ -119,11 +119,7 @@ func generateSupportPacket(c *Context, w http.ResponseWriter, r *http.Request) {
// Send the zip file back to client
// We are able to pass 0 for content size due to the fact that Golang's serveContent (https://golang.org/src/net/http/fs.go)
// already sets that for us
writeFileResponseErr := writeFileResponse(outputZipFilename, FileMime, 0, now, *c.App.Config().ServiceSettings.WebserverMode, fileBytesReader, true, w, r)
if writeFileResponseErr != nil {
c.Err = model.NewAppError("generateSupportPacket", "api.unable_write_file_response", nil, writeFileResponseErr.Error(), http.StatusForbidden)
return
}
writeFileResponse(outputZipFilename, FileMime, 0, now, *c.App.Config().ServiceSettings.WebserverMode, fileBytesReader, true, w, r)
}
func getSystemPing(c *Context, w http.ResponseWriter, r *http.Request) {