diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index 76304f4dca..96c8089c15 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -2986,7 +2986,7 @@ static switch_status_t file_open(switch_file_handle_t *handle, const char *path, if (switch_test_flag(&context->fh, SWITCH_FILE_FLAG_VIDEO)) { switch_set_flag(handle, SWITCH_FILE_FLAG_VIDEO); } else { - switch_set_flag(handle, SWITCH_FILE_FLAG_VIDEO); + switch_clear_flag(handle, SWITCH_FILE_FLAG_VIDEO); } }