wip httpd
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
diff --git a/Makefile b/Makefile
index f802ab1..650c43c 100644
--- a/Makefile
+++ b/Makefile
@@ -121,35 +121,6 @@ demo_gl_debug: debug
dist: kc3-${KC3_VERSION}.tar.gz
-http:
- ${MAKE} -C libtommath build
- ${MAKE} -C ucd2c
- ${MAKE} -C libkc3 build
- ${MAKE} -C ikc3 build
- ${MAKE} -C kc3s build
- ${MAKE} -C ekc3 build
- ${MAKE} -C http build
-
-httpd:
- ${MAKE} -C libtommath build
- ${MAKE} -C ucd2c
- ${MAKE} -C libkc3 build
- ${MAKE} -C ikc3 build
- ${MAKE} -C kc3s build
- ${MAKE} -C ekc3 build
- ${MAKE} -C http build
- ${MAKE} -C httpd build
-
-kc3-${KC3_VERSION}.tar.gz: kc3.index
- rm -rf kc3-${KC3_VERSION}.old
- -mv kc3-${KC3_VERSION} kc3-${KC3_VERSION}.old
- mkdir kc3-${KC3_VERSION}
- pax -rw < kc3.index kc3-${KC3_VERSION}
- pax -wz kc3-${KC3_VERSION} > kc3-${KC3_VERSION}.tar.gz
-
-kc3.index: sources.mk Makefile
- for F in ${KC3_CONFIGURES} ${KC3_MAKEFILES} ${KC3_C_SOURCES} ${KC3_OBJC_SOURCES} ${KC3_OTHER_SOURCES} ${KC3_EXTERNAL_SOURCES}; do echo "$$F"; done | sort -u > kc3.index
-
distclean:
${MAKE} -C libtommath distclean
${MAKE} -C ucd2c distclean
@@ -249,6 +220,25 @@ gdb_test_ikc3:
gen:
${MAKE} -C libkc3 gen
+http:
+ ${MAKE} -C libtommath build
+ ${MAKE} -C ucd2c
+ ${MAKE} -C libkc3 build
+ ${MAKE} -C ikc3 build
+ ${MAKE} -C kc3s build
+ ${MAKE} -C ekc3 build
+ ${MAKE} -C http build
+
+httpd:
+ ${MAKE} -C libtommath build
+ ${MAKE} -C ucd2c
+ ${MAKE} -C libkc3 build
+ ${MAKE} -C ikc3 build
+ ${MAKE} -C kc3s build
+ ${MAKE} -C ekc3 build
+ ${MAKE} -C http build
+ ${MAKE} -C httpd build
+
ikc3:
${MAKE} -C libtommath build
${MAKE} -C ucd2c
@@ -291,6 +281,16 @@ install:
${MAKE} -C httpd install
${MAKE} -C libkc3_window install
+kc3-${KC3_VERSION}.tar.gz: kc3.index
+ rm -rf kc3-${KC3_VERSION}.old
+ -mv kc3-${KC3_VERSION} kc3-${KC3_VERSION}.old
+ mkdir kc3-${KC3_VERSION}
+ pax -rw < kc3.index kc3-${KC3_VERSION}
+ pax -wz kc3-${KC3_VERSION} > kc3-${KC3_VERSION}.tar.gz
+
+kc3.index: sources.mk Makefile
+ for F in ${KC3_CONFIGURES} ${KC3_MAKEFILES} ${KC3_C_SOURCES} ${KC3_OBJC_SOURCES} ${KC3_OTHER_SOURCES} ${KC3_EXTERNAL_SOURCES}; do echo "$$F"; done | sort -u > kc3.index
+
lib_links_linux:
ln -sf ../../../ekc3/.libs/libekc3.so lib/kc3/0.1/ekc3.so
ln -sf ../../../http/.libs/libkc3_http.so lib/kc3/0.1/http.so
diff --git a/http/http_request.c b/http/http_request.c
index dbb8d0e..a5891e8 100644
--- a/http/http_request.c
+++ b/http/http_request.c
@@ -31,6 +31,7 @@ s_http_request * http_request_buf_parse (s_http_request *req, s_buf *buf)
tmp.method = sym_1("get");
if (! tmp.method) {
err_puts("http_request_buf_parse: no method");
+ err_inspect_buf(buf);
goto restore;
}
if (false) {