mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +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:
parent
91193bf928
commit
0d4155b902
@ -118,7 +118,7 @@ log(File, Code, Request) ->
|
|||||||
[IP, Day, Month, Year, Hour, Minute, Second, Request#request.method, Path, Query, Code]).
|
[IP, Day, Month, Year, Hour, Minute, Second, Request#request.method, Path, Query, Code]).
|
||||||
|
|
||||||
content_type(Filename) ->
|
content_type(Filename) ->
|
||||||
case httpd_util:to_lower(filename:extension(Filename)) of
|
case string:to_lower(filename:extension(Filename)) of
|
||||||
".jpg" -> "image/jpeg";
|
".jpg" -> "image/jpeg";
|
||||||
".jpeg" -> "image/jpeg";
|
".jpeg" -> "image/jpeg";
|
||||||
".gif" -> "image/gif";
|
".gif" -> "image/gif";
|
||||||
|
Loading…
Reference in New Issue
Block a user