mirror of https://github.com/go-gitea/gitea.git
fix: do not return archive download URLs in API if downloads are disabled (#34324)
If archive downloads are are disabled using _DISABLE_DOWNLOAD_SOURCE_ARCHIVES_, archive links are still returned by the API. This PR changes the data returned, so the fields _zipball_url_ and _tarball_url_ are omitted if archive downloads have been disabled. Resolve #32159pull/34330/head
parent
ba5c3f8087
commit
e67f74efc8
Loading…
Reference in New Issue