Skip to content

无法下载大于 10M sh 文件 #114

Description

@S8Cloud
curl -fSL --connect-timeout 15 --max-time 300 \
  -o /dev/null \
  -w '\nHTTP=%{http_code} bytes=%{size_download}\n' \
  'https://ghproxy.example.com/https://github.com/Kitware/CMake/releases/download/v3.27.6/cmake-3.27.6-linux-x86_64.sh'
脚本处理失败: 脚本文件过大,超过 10 MB 限制

https://github.com/sky22333/hubproxy/blob/main/src/utils/proxy_shell.go#L16

// MaxShellSize 限制最大处理大小为 10MB
const MaxShellSize = 10 * 1024 * 1024

能否添加配置项,进行修改

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions