Skip to content

Commit 0b398ee

Browse files
committed
Disable max code upload limit in runner
1 parent 3d5ab80 commit 0b398ee

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

runner/internal/runner/api/http.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package api
33
import (
44
"context"
55
"io"
6+
"math"
67
"net/http"
78
"os"
89
"path/filepath"
@@ -64,7 +65,7 @@ func (s *Server) uploadCodePostHandler(w http.ResponseWriter, r *http.Request) (
6465
return nil, &api.Error{Status: http.StatusConflict}
6566
}
6667

67-
r.Body = http.MaxBytesReader(w, r.Body, 10*1024*1024)
68+
r.Body = http.MaxBytesReader(w, r.Body, math.MaxInt64)
6869
codePath := filepath.Join(s.tempDir, "code") // todo random name?
6970
file, err := os.Create(codePath)
7071
if err != nil {

0 commit comments

Comments
 (0)