filetype detection fix

This commit is contained in:
2015-07-19 21:51:22 +03:00
parent 0deb0b449c
commit 215f81c955

View File

@@ -23,7 +23,7 @@ handle_uri() {
}
handle_mime() {
target_mimetype=$(file -ib "$target")
IFS=';' read target_mimetype charset <<< $( file -ib "$target" )
for m in "${mime_handlers[@]}"; do
IFS='=' read cmd regex <<< "$m"