kevinanielsen / go-fast-cdn

A fast and easy-to-use CDN, built with Go.
https://kevinanielsen.github.io/go-fast-cdn/
MIT License
107 stars 23 forks source link

feat: add support for txt files #120

Closed Caixetadev closed 5 months ago

Caixetadev commented 5 months ago

I noticed that when I tried to send a .txt file, it returned an error saying it wasn't supported, even though the map had the option for txt. The issue arose because my file had charset=utf-8, and since there was no corresponding entry in the map, it resulted in an error. I chose not to remove text/plain because there might be files that aren't in utf-8 format.