libwebsockets/lib
Andy Green fc29185b9f POST handling dont autocomplete transaction
Until now lws has finished the HTTP transaction when the POST body was
completely received.

However that needlessly makes it impossible to send a HTTP 200 and a
response without a redirect.

This changes lws behaviour after sending the LWS_CALLBACK_HTTP_BODY_COMPLETION
callback to no longer terminate the HTTP transaction.

If you want the old behaviour, you can terminate the transaction with
lws_http_transaction_completed() in the LWS_CALLBACK_HTTP_BODY_COMPLETION
callback.

Otherwise it's now possible to call lws_callback_on_writable() from
LWS_CALLBACK_HTTP_BODY_COMPLETION.

Signed-off-by: Andy Green <andy@warmcat.com>
2016-05-09 10:08:13 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
alloc.c Subject: [PATCH] Add custom allocator support using the realloc() interface 2014-12-05 07:25:24 +08:00
base64-decode.c b64decode correct decode of some strings 2016-03-19 07:43:22 +08:00
client-handshake.c client fix for operation with libuv 2016-05-08 17:11:07 +08:00
client-parser.c LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT to default to runtime ssl disable 2016-03-23 09:22:11 +08:00
client.c client provide user_space on LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER 2016-05-03 21:39:16 +08:00
context.c context only destroy protocols if init got sent 2016-05-08 17:10:51 +08:00
daemonize.c cgi post 2016-04-13 11:53:40 +08:00
extension-permessage-deflate.c extensions add api for user code option manipulation 2016-04-08 09:45:49 +08:00
extension-permessage-deflate.h extension permessage deflate 2016-01-11 11:34:01 +08:00
extension.c extensions add api for user code option manipulation 2016-04-08 09:45:49 +08:00
getifaddrs.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
getifaddrs.h Use LWS_HAVE_ instead of just HAVE_ 2015-10-12 09:53:17 +08:00
handshake.c POST handling dont autocomplete transaction 2016-05-09 10:08:13 +08:00
header.c post example in test server 2016-04-25 10:04:49 +08:00
hpack.c http2 update integration 2016-04-13 11:53:40 +08:00
http2.c http2 handle error path on ensure_user_space 2016-04-23 09:36:18 +08:00
huftable.h http2 hpack basic decode ok including huff 2014-10-12 08:38:16 +08:00
lextable-strings.h http2 update integration 2016-04-13 11:53:40 +08:00
lextable.h http2 update integration 2016-04-13 11:53:40 +08:00
libev.c plugins 2016-04-07 09:38:08 +08:00
libuv.c libuv tidy up destroy and disable timer races during shutdown 2016-05-08 17:11:19 +08:00
libwebsockets.c stats upgrade rx tx to long long 2016-05-04 15:59:55 +08:00
libwebsockets.h Changes to enable WIN CE support 2016-05-06 07:50:17 +08:00
lws-plat-mbed3.c mbed align with pt changes 2016-01-20 17:35:18 +08:00
lws-plat-mbed3.cpp mbed align with pt changes 2016-01-20 17:35:18 +08:00
lws-plat-unix.c libuv fixes for foreign loop test 2016-05-04 08:40:46 +08:00
lws-plat-win.c Changes to enable WIN CE support 2016-05-06 07:50:17 +08:00
minihuf.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c recv revert treating zero as hangup 2016-05-05 09:06:09 +08:00
parsers.c client handle connection fail at second phase properly 2016-05-08 17:10:38 +08:00
pollfd.c vh doubly linked list for wsi on same protocol 2016-04-16 08:40:35 +08:00
private-libwebsockets.h protocol plugins set default 2016-05-06 14:42:37 +08:00
rewrite.c proxy rewrite 2016-03-20 11:59:53 +08:00
server-handshake.c test server align rxbuf with permessage deflate rx buf size 2016-04-01 08:47:05 +08:00
server.c protocol plugins set default 2016-05-06 14:42:37 +08:00
service.c client fix reaction to tls failure 2016-05-03 07:26:10 +08:00
sha-1.c polarssl implementation 2016-04-18 20:05:43 +08:00
ssl-client.c client fix reaction to tls failure 2016-05-03 07:26:10 +08:00
ssl-http2.c http2 update integration 2016-04-13 11:53:40 +08:00
ssl-server.c polarssl implementation 2016-04-18 20:05:43 +08:00
ssl.c lib/ssl.c: fix libre- and boringssl 2016-05-06 07:49:49 +08:00