From 0d4155b902212a98a54b7eeb887230b504508c61 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 16 Jun 2009 13:52:28 +0000 Subject: [PATCH] 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 --- src/web/mod_http_fileserver.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/mod_http_fileserver.erl b/src/web/mod_http_fileserver.erl index a0c14964f..ff101755f 100644 --- a/src/web/mod_http_fileserver.erl +++ b/src/web/mod_http_fileserver.erl @@ -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";