mod_http_upload: Fix string()/binary() type issue

This commit is contained in:
Holger Weiss 2015-10-26 22:32:12 +01:00
parent 08f7291a24
commit 0b4e0e720e
1 changed files with 1 additions and 1 deletions

View File

@ -890,7 +890,7 @@ convert(Path, #media_info{type = T, width = W, height = H}) ->
-spec thumb_el(string(), binary()) -> xmlel().
thumb_el(Path, URI) ->
ContentType = guess_content_type(Path),
ContentType = guess_content_type(list_to_binary(Path)),
case identify(Path) of
{ok, #media_info{height = H, width = W}} ->
#xmlel{name = <<"thumbnail">>,