My gogs username is “johnjaylward”
I noticed recently that audio files have stopped working in the cache. When trying to download I get a message “Stored file has disallowed content type (audio/mpeg)”
I found that changing the function send_local_file
in classes/diskcache.php
to allow “audio” in the regex: "/(image|video)\//"
-> "/(audio|image|video)\//"
solves the issue.