diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index ae965ecf43..c01cb3d5f4 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -2024,7 +2024,7 @@ SWITCH_STANDARD_API(show_function) if (!strcasecmp(var, "text/plain")) { holder.http = NULL; } - } else { + } else if (holder.http) { stream->write_function(stream, "%s", "Content-Type: text/html\n\n"); }