]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
minor tweaks
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 4 Dec 2007 18:17:33 +0000 (18:17 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 4 Dec 2007 18:17:33 +0000 (18:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6497 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_commands/mod_commands.c

index 073d329958b58a604336bcb374f7b295c1e3a29f..8cccdb7399a0027629f706c2ecbc7a4f3ad2c0f9 100644 (file)
@@ -49,6 +49,10 @@ SWITCH_STANDARD_API(find_user_function)
        char *key, *user, *domain;
        char *xmlstr;
 
+       if (stream->event && switch_event_get_header(stream->event, "http-host")) {
+               stream->write_function(stream,  "Content-Type: text/xml\r\n\r\n");
+       }
+
     if (!cmd) {
                stream->write_function(stream,  "bad args\n");
         goto end;