From c81fb28fa2c7647f6cad538e30d876ff7a2ce336 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Mon, 26 May 2025 09:31:36 -0400 Subject: [PATCH] Disable max code upload limit in runner --- runner/internal/runner/api/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runner/internal/runner/api/http.go b/runner/internal/runner/api/http.go index a8377ea88a..36c63527fb 100644 --- a/runner/internal/runner/api/http.go +++ b/runner/internal/runner/api/http.go @@ -3,6 +3,7 @@ package api import ( "context" "io" + "math" "net/http" "os" "path/filepath" @@ -64,7 +65,7 @@ func (s *Server) uploadCodePostHandler(w http.ResponseWriter, r *http.Request) ( return nil, &api.Error{Status: http.StatusConflict} } - r.Body = http.MaxBytesReader(w, r.Body, 10*1024*1024) + r.Body = http.MaxBytesReader(w, r.Body, math.MaxInt64) codePath := filepath.Join(s.tempDir, "code") // todo random name? file, err := os.Create(codePath) if err != nil {