Quellcode durchsuchen

add fflush in httpd

Aleteoryx vor 5 Tagen
Ursprung
Commit
0f1eecc032
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      httpd.c

+ 2 - 0
httpd.c

@@ -481,6 +481,8 @@ void httpd_connection(FILE *f)
     else
         req = xs_httpd_request(f, &payload, &p_size);
 
+    fflush(f);
+
     if (req == NULL) {
         /* probably because a timeout */
         fclose(f);