mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 20:47:06 +00:00
add mime types to webserver
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6418 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
60c783c636
commit
a05c09a69a
4 files changed
+29
-9
No files matched your search
@@ -557,6 +557,12 @@ SWITCH_DECLARE(const char *) switch_core_mime_ext2type(const char *ext)
|
||||
return (const char *) switch_core_hash_find(runtime.mime_types, ext);
|
||||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(switch_hash_index_t *) switch_core_mime_index(void)
|
||||
{
|
||||
return switch_hash_first(NULL, runtime.mime_types);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_mime_add_type(const char *type, const char *ext)
|
||||
{
|
||||
const char *check = (const char *) switch_core_hash_find(runtime.mime_types, ext);
|
||||
|
||||
Reference in new issue
Block a user