Make manager response to "Action: events" finish with empty line
authorJeff Peeler <jpeeler@digium.com>
Wed, 2 Dec 2009 21:32:50 +0000 (21:32 +0000)
committerJeff Peeler <jpeeler@digium.com>
Wed, 2 Dec 2009 21:32:50 +0000 (21:32 +0000)
(closes issue #16275)
Reported by: vnovy
Patches:
      manager.c.diff uploaded by vnovy (license 922)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@232576 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 93e16fe..4e0be8c 100644 (file)
@@ -2689,10 +2689,10 @@ static int action_events(struct mansession *s, const struct message *m)
        res = set_eventmask(s, mask);
        if (res > 0)
                astman_append(s, "Response: Success\r\n"
-                                "Events: On\r\n");
+                                "Events: On\r\n\r\n");
        else if (res == 0)
                astman_append(s, "Response: Success\r\n"
-                                "Events: Off\r\n");
+                                "Events: Off\r\n\r\n");
        return 0;
 }