Commit Graph

356 Commits (b2e52fe1af41fa157f3b400db1e7e3c8c8b6860a)

Author SHA1 Message Date
Jianhui Zhao 9349adea75 Lua binding: Add constant: SSL_SUPPORTED
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-20 23:18:30 +08:00
Jianhui Zhao 1c6d892292 Bump version 2.1.2
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-20 00:20:19 +08:00
Jianhui Zhao 3c85ccf057 Lua binding: New API
send_error
redirect

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-20 00:19:00 +08:00
Jianhui Zhao b6e78a8cd2 Lua binding: Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-19 22:26:30 +08:00
Jianhui Zhao a3d1c70b8c Lua binding: Make the code more robust
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-19 22:25:09 +08:00
Jianhui Zhao 8f8a29adc5 Lua binding: New API: set_options
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-19 21:27:51 +08:00
Jianhui Zhao ab5eb4bdae libuhttpd: Fix bug: Can't set docroot and index file
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-19 21:08:04 +08:00
Jianhui Zhao c6441851f6 Lua API: New API: set_error404_cb
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-19 14:03:14 +08:00
Jianhui Zhao dcb397a62c libuhttpd: New API
int uh_server_open(const char *host, int port);
void uh_server_init(struct uh_server *srv, int sock);

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-19 13:35:30 +08:00
Jianhui Zhao 3920100e64 Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-19 10:54:09 +08:00
Jianhui Zhao db2dc53c61 Bump version 2.1.1
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-19 10:31:14 +08:00
Jianhui Zhao 356c9885a6 Lua API: Fix compile warning when ssl disabled.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-19 10:26:42 +08:00
Jianhui Zhao d0c983f905 Lua API: Fix compile error when ssl disabled.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-19 00:19:01 +08:00
Jianhui Zhao a1f069d9e7 Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-18 22:07:34 +08:00
Jianhui Zhao a28a0760ee Bump version 2.1.0
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-18 22:03:03 +08:00
Jianhui Zhao 34f55fa29e Lua API: Check whether the ssl is initialized successfully
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-18 21:59:33 +08:00
Jianhui Zhao 90fad37a4c example:helloworld.c: Fix bug: May be reference a NULL pointer.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-18 21:51:11 +08:00
Jianhui Zhao 69d7e91fb6 Lua API: Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-18 21:49:12 +08:00
Jianhui Zhao f03acc8b5c Lua API: Add function: ssl_init
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-18 16:58:29 +08:00
Jianhui Zhao 64d3036347 Lua API: example: Check whether the query is nil
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-18 14:15:48 +08:00
Jianhui Zhao 87c00d2291 Lua API: Add path field
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-18 14:13:12 +08:00
Jianhui Zhao 365e84fec3 Lua api: Support
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-18 14:06:21 +08:00
Jianhui Zhao f8148f2c85 src/CMakeLists.txt: Optimize
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-07-18 01:28:39 +08:00
Jianhui Zhao 3507cadc99 Bump version 2.0.3
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-18 10:50:49 +08:00
Jianhui Zhao f6d609dded chmod 644
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-18 10:48:32 +08:00
Jianhui Zhao ecb3ea962f Fix compile error on openwrt-x64
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-18 10:47:04 +08:00
Jianhui Zhao d9ef540473 mention some code in lua_template.c copied from.
https://github.com/openwrt/luci/blob/master/modules/luci-base/src/template_parser.c

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-16 18:26:31 +08:00
Jianhui Zhao b69c80a82e Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-16 14:06:22 +08:00
Jianhui Zhao f5adb6368b Bump version 2.0.2
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-12 10:58:43 +08:00
Jianhui Zhao 2210378a91 Fix compile errr when not enable Lua.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-12 10:57:50 +08:00
Jianhui Zhao d2439b6f5c Resolve compilation warnings: pointer-to-int-cast and int-to-pointer-cast
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-12 10:52:45 +08:00
Jianhui Zhao ace982c8c8 bump version 2.0.1
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-11 22:24:21 +08:00
Jianhui Zhao 2a204e7dac Fix compile warnings for some targets
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-11 22:23:02 +08:00
Jianhui Zhao cefd7505c0 Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-11 12:43:57 +08:00
Jianhui Zhao 4fbac91d35 Update travis
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-08 23:55:34 +08:00
Jianhui Zhao 8861060b55 Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-08 23:47:04 +08:00
Jianhui Zhao 4521e5d4f6 Add travis
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-08 23:45:29 +08:00
Jianhui Zhao 681cd458de Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-05 13:54:46 +08:00
Jianhui Zhao 72091e65f5 Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-03 23:00:59 +08:00
Jianhui Zhao f5e4c2590c Bump version 2.0.0
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-03 22:54:24 +08:00
Jianhui Zhao 379bfd2479 change license to LGPL2
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-03-03 17:33:49 +08:00
Jianhui Zhao 4eb664ca05 Bump version 1.1.1
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-02-25 09:28:18 +08:00
Jianhui Zhao f88387063e Remove some debug code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-02-25 09:26:16 +08:00
Jianhui Zhao 50eb1ba3e3 Fix README.md
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-02-19 14:14:20 +08:00
Jianhui Zhao adb6d4cbae Bump version 1.1.0
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-02-13 21:44:59 +08:00
Jianhui Zhao 81de054b07 Support Lua template
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-02-13 21:43:35 +08:00
Jianhui Zhao 1e59999d0c Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-02-07 16:02:14 +08:00
Jianhui Zhao e6f0c01918 Fix FindLibuhttpd
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-01-23 10:29:17 +08:00
Jianhui Zhao 43801ddfd6 Merge branch 'master' of https://github.com/zhaojh329/libuhttpd 2018-01-21 19:21:55 +08:00
Jianhui Zhao e09a3e9c47 Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2018-01-21 19:15:09 +08:00