Jianhui Zhao
805b1589f0
Improve the file response performance
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-01-02 19:22:07 +08:00
Jianhui Zhao
f32ae1188a
Update README
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-01-01 18:43:23 +08:00
Jianhui Zhao
01bfeb620b
OOP: Only expose APIs
...
Hide the implementation details of the structure
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-01-01 18:16:07 +08:00
Jianhui Zhao
2fd658c347
configure the docroot and index page globally.
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-01-01 16:53:14 +08:00
Jianhui Zhao
8931fb63e1
Update README
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-01-01 16:02:47 +08:00
Jianhui Zhao
1e20eca97d
Fix bug: handle fail when multi requests sent at a time
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-01-01 15:52:10 +08:00
Jianhui Zhao
637d78b6b2
buffer: update to latest
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-31 21:03:22 +08:00
Jianhui Zhao
77dd3987f9
More clear comments
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-31 20:40:30 +08:00
Chris Babcock
3dbd2c0fc8
Three days observation
2020-12-30 04:01:59 -07:00
Jianhui Zhao
6da3471fc4
Bump version 3.7.0
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-27 01:18:27 +08:00
Jianhui Zhao
943eb35b07
fix bug: The Handler function is not set correctly
...
This problem occurs when the same connection is
requested multiple times
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-27 01:08:39 +08:00
Jianhui Zhao
06e3d76dc9
handler: add new event: UH_EV_HEAD_COMPLETE
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-26 17:30:28 +08:00
Jianhui Zhao
0a7a38a467
Improve code
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-26 17:11:36 +08:00
Jianhui Zhao
8fe3f9b330
Update README
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-20 18:17:13 +08:00
Jianhui Zhao
8141dcc3fa
Bump version 3.6.0
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-20 18:03:16 +08:00
Jianhui Zhao
bdd7727d48
Support IPv6
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-20 17:47:45 +08:00
Jianhui Zhao
7d94ddaedf
Optimize code
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-18 11:19:56 +08:00
Jianhui Zhao
bb9a1d2a34
example.c: fix load plugin path
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-18 11:17:14 +08:00
Jianhui Zhao
8acea3878e
Update README
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-17 23:51:46 +08:00
Jianhui Zhao
0b5ae19d14
Bump version 3.5.0
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-17 23:43:13 +08:00
Jianhui Zhao
e571a34385
new features: path handler and upload large file
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-17 23:32:36 +08:00
Jianhui Zhao
4c75690dfd
fix memory leak
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-17 00:47:06 +08:00
Jianhui Zhao
ee4dbb367f
canonical header files
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-12 14:52:27 +08:00
Jianhui Zhao
0b2c2f4a3b
Optimizing source tree
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-12-12 14:32:57 +08:00
Jianhui Zhao
2c0cedc2bd
Merge pull request #13 from ffontaine/master
...
src/CMakeLists.txt: fix static build with a zlib and mbedtls
2020-12-02 13:11:08 +08:00
Fabrice Fontaine
0c2d85450e
src/CMakeLists.txt: fix static build with a zlib and mbedtls
...
Static build with a zlib-enabled mbedtls fails on:
[100%] Linking C executable example
/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real: /home/buildroot/autobuild/instance-3/output-1/host/arm-buildroot-uclinux-uclibcgnueabi/sysroot/usr/lib/libmbedtls.a(ssl_tls.c.o): in function `mbedtls_ssl_transform_free.part.24':
ssl_tls.c:(.text+0xbc6): undefined reference to `deflateEnd'
As mbedtls does not provide a pkg-config file, search for zlib and link
with it if necessary
Fixes:
- http://autobuild.buildroot.org/results/5891d12e90182460cde1ddfa0ca75e9fd55e3dff
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-12-01 20:39:54 +01:00
Jianhui Zhao
92b6cd4d3b
Bump version 3.4.2
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-10-28 14:13:09 +08:00
Jianhui Zhao
e9013e85a0
fix compile fail on riscv64
...
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-10-28 14:11:14 +08:00
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