25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

The Erlang/OTP function httpd_util:to_lower/1 is deprecated, and it's recommended to use string:to_lower/1 instead.

SVN Revision: 2186
This commit is contained in:
Badlop 2009-06-16 13:52:28 +00:00
parent 91193bf928
commit 0d4155b902

View File

@ -118,7 +118,7 @@ log(File, Code, Request) ->
[IP, Day, Month, Year, Hour, Minute, Second, Request#request.method, Path, Query, Code]).
content_type(Filename) ->
case httpd_util:to_lower(filename:extension(Filename)) of
case string:to_lower(filename:extension(Filename)) of
".jpg" -> "image/jpeg";
".jpeg" -> "image/jpeg";
".gif" -> "image/gif";