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:
parent
bd106bd45f
commit
7e426b9623
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue