We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 77e8e24 + 10787dd commit f86c740Copy full SHA for f86c740
1 file changed
src/wn_module.c
@@ -349,6 +349,25 @@ int webnet_module_system_dofile(struct webnet_session *session)
349
"Content-Length: %ld\r\n",
350
file_length);
351
352
+#ifdef WEBNET_USING_KEEPALIVE
353
+ if(session->request->connection == WEBNET_CONN_KEEPALIVE)
354
+ {
355
+ webnet_session_printf(session,
356
+ "Connection: %s\r\n",
357
+ "Keep-Alive");
358
+ }
359
+ else
360
361
362
363
+ "close");
364
365
+#else
366
367
368
369
+#endif
370
+
371
#ifdef WEBNET_USING_GZIP
372
if (request->support_gzip)
373
{
0 commit comments