Commit Graph

321 Commits (0755e549ff88bad62045219acef0ca70796adcc5)

Author SHA1 Message Date
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
Jianhui Zhao 08c8f6ee79 src/CMakeLists.txt: fix static build with openssl
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-04-03 21:45:52 +08:00
Jianhui Zhao 350e520dfe Fix src/CMakeLists.txt
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-03-24 11:08:31 +08:00
Jianhui Zhao f3a62126b3 Bump version 3.1.0
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-03-14 14:14:22 +08:00
Jianhui Zhao f51903664e Fix return value while parse header
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-03-14 14:10:45 +08:00
Jianhui Zhao 040763a64a Support parse url
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-03-14 14:03:48 +08:00
Jianhui Zhao 5f4f6e0d97 support plugin
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-03-14 00:25:42 +08:00
Jianhui Zhao c40fcccd95 Fix compile error
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-03-14 00:08:44 +08:00
Jianhui Zhao 2ff3be7dc1 beautify code style
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-03-13 23:09:48 +08:00
Jianhui Zhao eb66e8e36f http-parser: Use submodule
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-03-06 13:48:48 +08:00
Jianhui Zhao af528ac2ac Bump version 3.0.2
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-02-07 17:31:39 +08:00
Jianhui Zhao b1fcf378f7 Fix README
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-02-07 17:31:01 +08:00
Jianhui Zhao 7ff34b7319 buffer: sync from upstream
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-02-07 17:29:46 +08:00
Jianhui Zhao a0f308b0cb
Merge pull request #6 from DongCai008/master
Fix compile error when using glibc in openwrt
2019-11-06 17:56:04 +08:00
Dong Cai b01d2200af Fix compile error when using glibc in openwrt env
[ 66%] Built target uhttpd
make[6]: Entering directory '/home/xxx/openwrt-compile/openwrt/build_dir/target-x86_64_glibc/libuhttpd-nossl/libuhttpd-2.0.3'
make[6]: Leaving directory '/home/xxx/openwrt-compile/openwrt/build_dir/target-x86_64_glibc/libuhttpd-nossl/libuhttpd-2.0.3'
make[6]: Entering directory '/home/xxx/openwrt-compile/openwrt/build_dir/target-x86_64_glibc/libuhttpd-nossl/libuhttpd-2.0.3'
[ 75%] Linking C executable helloworld
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `sinh'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `ceil'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `atan2'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `tanh'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `atanh'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `cosh'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `fmod'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `acosh'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `acos'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `sin'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `atan'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `asin'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `exp'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `tan'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `cos'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `log'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `pow'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `log10'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `sqrt'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `asinh'
/home/xxx/openwrt-compile/openwrt/staging_dir/target-x86_64_glibc/usr/lib/liblua.so: undefined reference to `floor'
2019-11-05 21:51:16 -08:00
Jianhui Zhao 563ad01821 Change the license information
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2019-09-03 15:03:35 +08:00
Jianhui Zhao f382038269 Bump version 3.0.1
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2019-08-31 18:26:49 +08:00
Jianhui Zhao 6f2357d4cd Fix build error on 32-bit platform
cast to pointer from integer of different size

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2019-08-31 18:23:02 +08:00
Jianhui Zhao ce6f1e0f2c Fix type
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2019-08-31 17:08:41 +08:00
Jianhui Zhao 334c2f2e5f Bump version 3.0.0
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2019-08-31 17:03:32 +08:00
Jianhui Zhao a94ce74860 Update README
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2019-08-31 16:56:51 +08:00
Jianhui Zhao 99505ae0f1 Fix ci
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2019-08-31 16:55:19 +08:00