Cached MP3 files no longer work

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.

thanks for noticing, i guess i forgot about audio entirely.

you should be able to clone repositories now.