Merge branch 'main' into feat-fleet-app-library

This commit is contained in:
Gabriel Hernandez
2024-09-27 13:25:21 +01:00
82 changed files with 1127 additions and 1757 deletions
+2 -1
View File
@@ -1151,7 +1151,8 @@ the way that the Fleet server works.
}
}
if req.Method == http.MethodPost && strings.HasSuffix(req.URL.Path, "/fleet/software/package") {
if (req.Method == http.MethodPost && strings.HasSuffix(req.URL.Path, "/fleet/software/package")) ||
(req.Method == http.MethodPatch && strings.HasSuffix(req.URL.Path, "/package") && strings.Contains(req.URL.Path, "/fleet/software/titles/")) {
// when uploading a software installer, the file might be large so
// the read timeout (to read the full request body) must be extended.
rc := http.NewResponseController(rw)