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

SVN Revision: 2171
This commit is contained in:
Badlop 2009-06-16 13:44:48 +00:00
parent bd106bd45f
commit 7e426b9623
1 changed files with 1 additions and 1 deletions

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";