Commit Graph

292 Commits (5146b8e0d5de77415cd0d785a9cb87473cfe4cb5)

Author SHA1 Message Date
Jianhui Zhao 5146b8e0d5 Bump version 3.4.1
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-10-27 19:21:51 +08:00
Jianhui Zhao a388b50e08
Merge pull request #11 from ffontaine/master
src/uhttpd.c: fix build without dlopen
2020-10-17 12:23:46 +08:00
Fabrice Fontaine 0b2058e7c9 src/uhttpd.c: fix build without dlopen
Build without dlopen fails on:

/data/buildroot-test/instance-0/output-1/build/libuhttpd-3.4.0/src/uhttpd.c:45:23: error: unused variable 'p' [-Werror=unused-variable]
     struct uh_plugin *p = srv->plugins;
                       ^

Fixes:
 - http://autobuild.buildroot.org/results/b2bbd0681705b94e6b531996b39f62e47f089c92

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-10-16 21:39:47 +02:00
Jianhui Zhao 1e44f7fa34 Bump version 3.4.0
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-10-14 22:15:08 +08:00
Jianhui Zhao f621c51888 struct uh_connection: New api: get_addr
Return the host byte order address

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-10-14 20:48:15 +08:00
Jianhui Zhao d4b34049bc plugins/test.c: Fix usage of get_path
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-10-06 17:57:51 +08:00
Jianhui Zhao 28c7e74aa8 Fix memory leak
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-10-06 17:56:01 +08:00
Jianhui Zhao 99992538fa Bump version 3.3.1
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-10-04 13:18:39 +08:00
Jianhui Zhao 9c821c12ef Fix bug: typo
Mistakenly write 'If-Unmodified-Since' to 'If-Modified-Since'

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-09-29 22:09:10 +08:00
Jianhui Zhao 80eac83ca3 Bump version 3.3.0
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-09-14 09:57:09 +08:00
Jianhui Zhao b77d83c60b uh_connection: remove api: free
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-09-08 22:45:21 +08:00
Jianhui Zhao 15c2b53bcb example: ignore SIGPIPE
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-09-08 22:41:03 +08:00
Jianhui Zhao 9410e7eca9 Support reply data defered
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-09-08 22:37:36 +08:00
zhaojh329 17f7ccf2c9 Fix bug: parse error while buffer realloced
Signed-off-by: zhaojh329 <zhaojh329@gmail.com>
2020-09-07 16:47:45 +08:00
zhaojh329 96ef9bcda0 Don't const for 'struct uh_str'
Signed-off-by: zhaojh329 <zhaojh329@gmail.com>
2020-09-07 14:31:21 +08:00
Jianhui Zhao 9570dda5cf Support 'Connection: close'
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-09-07 14:16:37 +08:00
zhaojh329 28c8146740 Optimize code and fix gzip encoding
Signed-off-by: zhaojh329 <zhaojh329@gmail.com>
2020-09-07 14:03:01 +08:00
zhaojh329 87a209c3b8 conn_get_header: ignoring case
Signed-off-by: zhaojh329 <zhaojh329@gmail.com>
2020-09-07 00:43:20 +08:00
zhaojh329 e02e9b07f8 Set UHTTPD_MAX_HEADER_NUM to 50
Signed-off-by: zhaojh329 <zhaojh329@gmail.com>
2020-09-07 00:41:16 +08:00
zhaojh329 30729cf9e7 Fix bug: Parsing error for fragment data
Signed-off-by: zhaojh329 <zhaojh329@gmail.com>
2020-09-07 00:40:12 +08:00
Jianhui Zhao fbcf45ac36
Merge pull request #10 from neheb/patch-1
file: define _FILE_OFFSET_BITS to 64
2020-08-30 22:40:27 +08:00
Rosen Penev e5021c6526
file: define _FILE_OFFSET_BITS to 64
Fixes compilation under uClibc-ng where ino_t and off_t are the wrong types for the format string.
2020-08-29 16:58:57 -07:00
Jianhui Zhao f8d348d46a Fix bug: Parsing error for fragment data
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-08-25 15:46:46 +08:00
Jianhui Zhao 1017f1019a Bump version 3.2.0
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-08-24 23:37:30 +08:00
Jianhui Zhao fee3f26c31 Fix build fail on openwrt
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-08-24 23:34:41 +08:00
Jianhui Zhao 281f4a81e1 Update README
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-08-20 23:08:30 +08:00
Jianhui Zhao 6a745118d6 Update README
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-08-02 13:33:04 +08:00
Jianhui Zhao 2b8fcfec89 serve_file: Support 'Content-Encoding: gzip'
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-02 23:37:54 +08:00
Jianhui Zhao e9666e82e2 conn_get_header: Fix bug
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-02 23:31:25 +08:00
Jianhui Zhao 97ab9877a2 Fix variable name
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-02 22:34:33 +08:00
Jianhui Zhao 162b8fe4f2 conn_get_header: return NULL if not found
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-02 22:26:00 +08:00
Jianhui Zhao 2844706996 connection: New api: serve_file
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-02 10:32:19 +08:00
Jianhui Zhao 2c1b2840b1 example.c: Fix parse argument error
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-02 10:09:12 +08:00
Jianhui Zhao 2674d6c9cb Optimize code by use HTTP_STATUS_xx
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-01 22:37:58 +08:00
Jianhui Zhao 758b5875c2 connection: New api: get_method and get_method_str
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-01 22:25:32 +08:00
Jianhui Zhao 8a9f29958f example.c: Fix code style
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-01 17:31:35 +08:00
Jianhui Zhao 0eaa539315 connection: Add api: send_file
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-01 17:04:56 +08:00
Jianhui Zhao 43b7160cd9 Fix install path of http_parser.h
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-07-01 14:49:43 +08:00
Jianhui Zhao 95e6d5acbc Bump version 3.1.4
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-04-07 12:44:35 +08:00
Jianhui Zhao 4bcac5079e
Merge pull request #9 from ffontaine/master
fix static build
2020-04-07 11:23:53 +08:00
Fabrice Fontaine 4d0f435e0b fix static build
Add BUILD_SHARED_LIBS and BUILD_STATIC_LIBS to allow the user to build a
static only version

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-04-06 19:01:30 +02:00
Jianhui Zhao b2501c318a
Merge pull request #8 from zhaojh329/revert-7-master
Revert "src/CMakeLists.txt: fix static build"
2020-04-06 21:25:01 +08:00
Jianhui Zhao c54200e6f5
Revert "src/CMakeLists.txt: fix static build" 2020-04-06 21:24:31 +08:00
Jianhui Zhao ad13b8d9da
Merge pull request #7 from ffontaine/master
src/CMakeLists.txt: fix static build
2020-04-06 21:13:50 +08:00
Fabrice Fontaine 18e6f02120 src/CMakeLists.txt: fix static build
Do not force SHARED when building library or static build will fail

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-04-06 09:11:01 +02:00
Jianhui Zhao 9fdbcfb8bd Bump version 3.1.3
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-04-06 12:19:55 +08:00
Jianhui Zhao abaedeeac2 build: Fix check dlopen
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-04-06 12:18:05 +08:00
Jianhui Zhao b4adc20935 Bump version 3.1.2
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-04-05 00:50:14 +08:00
Jianhui Zhao ac25a305fe build: Check if libdl exists in the system
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-04-05 00:47:29 +08:00
Jianhui Zhao df0610c1f6 Bump version 3.1.1
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-04-03 21:46:46 +08:00