From 22bd6add200b20046d17d9aef311dd3c7b89478b Mon Sep 17 00:00:00 2001
From: Anthony Minessale <anthony.minessale@gmail.com>
Date: Mon, 11 Aug 2008 23:58:42 +0000
Subject: [PATCH] tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9253 d0543943-73ff-0310-b7d9-9358b9ac24b2
---
 src/mod/applications/mod_commands/mod_commands.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");
 		}