add "ANSWER 0" line on empty answers to socket
This commit is contained in:
parent
7ee1d57ed2
commit
90927315a7
@ -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
2
tgl
@ -1 +1 @@
|
||||
Subproject commit abcd3899120e5f811feddc63ea7a9ebf65feca9b
|
||||
Subproject commit 195b2bcccdefd63282654c4d827315a48b677f97
|
Loading…
x
Reference in New Issue
Block a user