Skip to content
Snippets Groups Projects
Commit d3bc707c authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-neighbour-info: flush after writing the HTTP header

sse-multiplex likes to get the header as fast as possible.
parent c3150d82
No related branches found
No related tags found
No related merge requests found
...@@ -206,8 +206,10 @@ int main(int argc, char **argv) { ...@@ -206,8 +206,10 @@ int main(int argc, char **argv) {
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
if (sse) if (sse) {
fputs("Content-Type: text/event-stream\n\n", stdout); fputs("Content-Type: text/event-stream\n\n", stdout);
fflush(stdout);
}
do { do {
ret = request(sock, &client_addr, request_string, sse, timeout, max_count); ret = request(sock, &client_addr, request_string, sse, timeout, max_count);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment