This commit is contained in:
2026-07-25 14:55:41 -05:00
parent cd61add56f
commit d5faf998f4
4 changed files with 61 additions and 10 deletions
+4
View File
@@ -184,6 +184,10 @@ func (s *Server) streamPackageToGitea(
response, err := s.packageClient.Do(request)
if err != nil {
var maxBytesError *http.MaxBytesError
if errors.As(err, &maxBytesError) {
return "", int64(size), http.StatusRequestEntityTooLarge, maxBytesError
}
return "", int64(size), http.StatusBadGateway, errors.New("package registry upload failed")
}
defer response.Body.Close()