Closed DavidAlphaFox closed 5 years ago
Agree. Maybe use string:lowercase/1
instead though.
Agree, I fixed this.
If the version of OTP is 20 or greater, it will use string:lowercase
. Otherwise it will use through.
There's no need to support versions below 20, 19 will be dropped soon.
OK, I revert the commit. Only support OTP 20 or greater.
I've merged this locally and this will be part of the next patch release. I've also added a test in Cowboy for cowboy_static relating to this. Thanks!
Dear author. I use
cow_mimetypes
to detect mimetypes, but sometime the extension of filename in upper char on filesystem. So I modifycow_mimetypes
, force extension of filename into lower char.