projects
/
oweals
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
client: allow keep-alive for POST requests
[oweals/uhttpd.git]
/
file.c
diff --git
a/file.c
b/file.c
index 8ccf98258677fc8214f7d62f970715ac2fad8b7e..85487f8e14d666cf913e8dae79a7ea3e5e4d35fa 100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-17,6
+17,10
@@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef _DEFAULT_SOURCE
+# define _DEFAULT_SOURCE
+#endif
+
#define _BSD_SOURCE
#define _DARWIN_C_SOURCE
#define _XOPEN_SOURCE 700
#define _BSD_SOURCE
#define _DARWIN_C_SOURCE
#define _XOPEN_SOURCE 700
@@
-749,6
+753,7
@@
static void uh_complete_request(struct client *cl)
cl->dispatch.data_blocked = false;
uh_invoke_script(cl, dr->d, dr->path ? &dr->pi : NULL);
client_poll_post_data(cl);
cl->dispatch.data_blocked = false;
uh_invoke_script(cl, dr->d, dr->path ? &dr->pi : NULL);
client_poll_post_data(cl);
+ ustream_poll(cl->us);
}
}
}
}