add "ANSWER 0" line on empty answers to socket

This commit is contained in:
vvaltman 2015-06-01 12:07:44 +03:00
parent 7ee1d57ed2
commit 90927315a7
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ void socket_answer_add_printf (const char *format, ...) {
}
void socket_answer_end (struct in_ev *ev) {
if (ev->bev && socket_answer_pos > 0) {
if (ev->bev) {
static char s[100];
sprintf (s, "ANSWER %d\n", socket_answer_pos);
bufferevent_write (ev->bev, s, strlen (s));

2
tgl

@ -1 +1 @@
Subproject commit abcd3899120e5f811feddc63ea7a9ebf65feca9b
Subproject commit 195b2bcccdefd63282654c4d827315a48b677f97