1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00
Commit Graph

2616 Commits

Author SHA1 Message Date
bel
fca77a232d Check appveyor problem 'the system can not execute the specified program' 2015-12-10 00:16:16 +01:00
bel
59f9861374 get_random returns unsigned int64 2015-12-09 23:07:01 +01:00
bel
f3b5d0f35d Use 64 bit random number nonce in http digest auth 2015-12-09 23:03:31 +01:00
bel
31c19f74a5 Fix #230: Fix all GCC version checks this time.
Check GNUC > 4 according to Red54 (the original author of patch #230).
2015-12-09 22:18:43 +01:00
bel
daf2c2e5f4 Update documentation 2015-12-08 22:16:40 +01:00
bel
896aebdc7c Add draft for contribution guidelines 2015-12-08 21:36:13 +01:00
bel
e5c4a37b77 Update Embedding.md 2015-12-08 20:18:38 +01:00
bel
71f2ef9068 Add a comment in Embedding.md: CivetWeb is in C and C++ is only an (incomplete) wrapper.
See also #233
2015-12-08 20:18:21 +01:00
bel2125
b6bf727f23 Add comments to get_random function 2015-12-08 10:58:17 +01:00
bel2125
4460ef70ba Format code 2015-12-08 10:40:12 +01:00
bel2125
ca3b2c14db Extract random number generator from websocket client code 2015-12-08 10:39:15 +01:00
bel2125
8e536227a4 Enable IPV6 and WEBSOCKET in Qt build 2015-12-08 10:09:05 +01:00
bel
b31ba11f03 Fix #230: must be GNUC >= 5 2015-12-07 19:16:27 +01:00
bel
ef121c468b Recursive delete: Send error code 500 instead of 409, since we do not have any information for the client how to fix the problem 2015-12-06 23:35:37 +01:00
bel
4171f5b831 Fix TODO: Check and return status code of DELETE operation 2015-12-06 23:06:10 +01:00
bel
22872fa68e Comments in function 'parse_auth_header' 2015-12-06 22:18:08 +01:00
bel
47321e98f4 Comments in function skip_quoted 2015-12-06 21:37:34 +01:00
bel
5b30e5f95b Take inventory of all HTTP methods (function is_valid_http_method) 2015-12-06 00:01:23 +01:00
bel
f9f5f5ce06 Fix compile error 2015-12-04 20:29:20 +01:00
bel2125
ca4e6d60b4 Merge pull request #235 from sunfch/patch-1
access log: print query sting in url
2015-12-02 19:34:09 +01:00
sunfch
9e84828a42 print query sting in url
replace "?" with ":"
2015-11-30 10:00:09 +08:00
bel
8fbe05852a Fix #204: Memory mapped files must not return 1970-01-01 as modification date 2015-11-29 23:38:10 +01:00
sunfch
513d24100a print query sting in url
print query string after character of "?" in url
2015-11-29 23:12:34 +08:00
bel
04db49f20b Autoformat after merge #234 2015-11-28 23:36:37 +01:00
bel2125
1846aa584f Merge pull request #234 from rusthon/master
CivetServer constructor options as std::vector<std::string>
2015-11-28 23:32:51 +01:00
bel
66aa28b234 Add a bad lua script and a bad lua page for test purposes 2015-11-28 23:05:59 +01:00
brett
c07b562d2d allow CivetServer constructor to accept options as std::vector<std::string>
https://github.com/civetweb/civetweb/issues/233
2015-11-28 13:24:42 -08:00
bel2125
f16f8ebdf7 Preliminary fix for #225
lp do not work at the moment, because mg_fopen resets unused outputs
of the struct file. In this fix, the required size member is copied
from the previous call to mg_stat.

However, the real maintenance problem is, operations like mg_fopen
and mg_stat have to do exactly and exclusively what their names
suggest. They should not set different members of a common output
structure (struct file).
But this will be a more comprehensive change which needs more time.
2015-11-27 23:56:38 +01:00
bel2125
63cdbe0648 Remove instrumentation 2015-11-27 20:37:43 +01:00
bel2125
f4d86792b5 Autoformat after merge 2015-11-27 20:31:03 +01:00
bel2125
a7080226f8 Fix websockets for Lua for Linux
Websockets for Lua only works if the used mutex is recursive
2015-11-27 20:10:10 +01:00
bel2125
1473a00ce2 Add Lua script to exit the server 2015-11-27 20:10:10 +01:00
bel2125
16e5a04b74 Add shell helper script for coverity check 2015-11-27 20:10:10 +01:00
bel2125
0af14a185e Add instrumentation for lock problem in Lua websockets on Linux 2015-11-27 20:10:10 +01:00
bel2125
f1ef34d561 Merge pull request #230 from Red54/patch-1
Add support for GCC below 4.1.0 - note that it will not be thread save for older GCC version (without __sync_fetch_and_add)
2015-11-27 18:43:07 +01:00
Red54
5b840a375d Add support for GCC below 4.1.0. 2015-11-27 15:01:59 +08:00
bel
bbbe470d9f Unit tests: rename all test case instances 2015-11-26 23:39:20 +01:00
bel
4bc859d665 Fix copy/paste error in unit test 2015-11-26 22:40:39 +01:00
bel
dddb5cf235 Fix typing error in unit test 2015-11-26 22:34:04 +01:00
bel
4c8979c077 Some code is unreachable in the unit test - disable the clang compiler warning at these lines 2015-11-26 22:28:14 +01:00
bel
1efb65f20b Unit test: mask_data is only available if built with websocket support 2015-11-26 22:23:20 +01:00
bel
c7d5e24f92 Fix signed/unsigned comp in unit test 2015-11-25 23:51:22 +01:00
bel
87e8f2e8c2 Remove TODO mark 2015-11-25 23:37:29 +01:00
bel
641a742128 Add helper funktion for mask_data and enhance test for websocket clients 2015-11-25 23:18:33 +01:00
bel
e4de33ab69 Don't use CMake for Duktape
CMake will not be used for third party libraries like Lua and Duktape,
at least for the moment (see #94).
2015-11-23 21:04:13 +01:00
bel
29ce2faccf Don't use CMake for Lua
CMake works for civetweb.c, but it does not work for CivetWeb built with Lua.
Maybe it would be possible to create a suitable CMake build (see #94),
but running CI tests are more important.

It is still possible to build with Lua using the Makefile and the Visual Studio
solution in the current project. The Makefile and the Solution remain supported
for the Lua build.
2015-11-22 21:13:19 +01:00
bel
6fea50d46c Try to add Lua build for CMake 2015-11-20 00:08:34 +01:00
bel
d516696195 Add a minimal description of mg.url_decode
Add a mimimal comment to the UserManual about the Lua function mg.url_decode
See #228

A more comprehensive documentation has to be added later.
2015-11-20 00:02:56 +01:00
bel
851a4cda6b Add HTTPS support to embedded example 2015-11-17 22:03:19 +01:00
bel
183e96bed9 Fix unit test 2015-11-12 22:22:14 +01:00