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

3203 Commits

Author SHA1 Message Date
Lammert Bies
96ca181ab0 Bold typeface for parameters and fields 2016-09-26 18:47:23 +02:00
Lammert Bies
b7f1eb0e82 Enhanced table layout 2016-09-26 18:40:18 +02:00
Lammert Bies
68c65fed26 Splitting callback structure info over two rows 2016-09-26 18:35:29 +02:00
Lammert Bies
7cb247dd0c Changed layout of mg_callbacks structure table 2016-09-26 18:32:53 +02:00
Lammert Bies
dbcf345ccc Start of adding mg_callbacks structure 2016-09-26 18:15:02 +02:00
Lammert Bies
42287bd402 Added two structures to the documentation 2016-09-26 17:52:12 +02:00
Lammert Bies
fab327c9b6 Moved all parameter lists to tables 2016-09-26 17:29:08 +02:00
Lammert Bies
2ebb6ee9f7 Added first parameter table 2016-09-26 17:12:03 +02:00
Lammert Bies
e6d1a73950 Test with line breaks 2016-09-26 17:06:03 +02:00
Lammert Bies
bb7c54bbfd Added compilation option to features table 2016-09-26 17:04:21 +02:00
Lammert Bies
6d5f0dd9f1 Feature value layout changed to table 2016-09-26 16:58:04 +02:00
Lammert Bies
ef3ca9f012 Some layout tests to see how it is rendered 2016-09-26 16:48:56 +02:00
Lammert Bies
ce0fa5ce3a Added some extra functions and cleaned up layout 2016-09-26 16:46:38 +02:00
Lammert Bies
37a71f97af Added some extra functions to the API reference 2016-09-26 15:00:31 +02:00
Lammert Bies
6364eec9ce Removed text not directly related to the API 2016-09-26 14:33:29 +02:00
Lammert Bies
3dc274d5f5 Added description of the function mg_check_feature() 2016-09-26 14:30:10 +02:00
Lammert Bies
b37af74837 Added information about mg_start() 2016-09-26 14:08:49 +02:00
Lammert Bies
ed448acf32 Start of API reference document. 2016-09-26 05:06:25 +02:00
bel2125
fbdee7440b Add ECDH (Elliptic Curve Diffie-Hellman cryptography) to example
See https://wiki.openssl.org/index.php/Elliptic_Curve_Cryptography
See also https://github.com/civetweb/civetweb/issues/347
2016-09-25 22:32:50 +02:00
bel
3b6461d2a0 exception if invalid throttle parameter is used
If '*' is used as `throttle` parameter, there is a segfault
at the first request (see #350). This is a quick fix to avoid the
segfault exception.
Note that in general civetweb.c does not check parameters in advance,
in order to keep the code simple. Other invalid parameters may still
cause exceptions. It is the responsibility of the caller to pass
valid parameters to mg_start.
2016-09-18 21:59:09 +02:00
bel
bf2468a880 Fix recent changes in parse_port_string 2016-09-18 20:27:00 +02:00
bel
55cca2da03 Fix copy/paste error in test 2016-09-18 19:22:45 +02:00
bel
b38df9d5f2 Reset address family if parse_port_string fails 2016-09-18 16:07:15 +02:00
bel
be17586511 Adapt unit test for the new parameter of parse_port_string 2016-09-18 15:56:32 +02:00
bel
e122b48395 Add a short notation for using IPv4 and IPv6
See #326 and changes in the UserManual.md

Auto-format source.
2016-09-17 22:44:29 +02:00
bel
3545edf973 Add SSL parameters to the example 2016-09-17 18:51:59 +02:00
bel2125
a403400d38 Merge pull request #358 from Trustera/issue-349-2
Second fix attempt for issue 349.
2016-09-17 18:39:10 +02:00
ehlertjd@gmail.com
a542401946 Second fix attempt for issue 349.
This is the only way to safely call clock_gettime (that I know of) when compiling for OSX 10.12 or iOS 10.
Refs #349.
2016-09-15 16:10:49 -05:00
bel
1206a1e604 Fix #355 and autoformat the code 2016-09-14 20:44:48 +02:00
bel
301e25d66c Enhance user manual 2016-09-14 20:13:40 +02:00
bel2125
b2878aa61b Merge pull request #356 from Trustera/issue-349
Do not define clock_gettime for OSX versions >= 10.12.
2016-09-12 21:54:53 +02:00
ehlertjd@gmail.com
48edfca934 Do not define clock_gettime for OSX versions >= 10.12.
Closes #349.
2016-09-12 14:35:17 -05:00
bel
e7f48f31b2 Auto-format after merge 2016-09-11 20:04:09 +02:00
bel
21be1c6872 Create stronger server certificates for the server test.
Replace 1024 bit certificate used for testing the server by a 4096 bit certificate.
Add batch file to create the certificates in Windows.
2016-09-11 20:02:36 +02:00
bel
7fbae7f168 Set server preference of ciphers.
If the server supports weak ciphers, a client can still use a weak encryption by only offering the weakest cipher a server supports. Thus, a server should only support strong ciphers. If the server only supports strong ciphers, it does not matter if the server or the client preference is used.

Still, tests for the server security seem to insist on using the server preference (see #347). There are no disadvantages in doing so. So it is set as default now.
2016-09-11 20:02:33 +02:00
bel2125
eafa23ea46 Merge pull request #332 from ioxp/master
Added optional additional_headers for mg_send_mime_file
2016-09-11 19:21:38 +02:00
bel2125
0abb4a21c6 Merge pull request #355 from saumitravikram/master
close socket without linger when connection already closed from client (see #237)
2016-09-11 19:14:57 +02:00
Saumitra Vikram
87e8499b9e casted argument from sizeof to socklen_t 2016-09-10 11:13:51 +05:30
Saumitra Vikram
8422c7e54a close socket without linger with connection already closed from client 2016-09-10 10:49:51 +05:30
bel2125
6157da5d95 Merge pull request #353 from saumitravikram/master
Disabling code optimization flag for DEBUG build
2016-09-03 21:20:16 +02:00
Saumitra Vikram
38e54ea42c Disabling code optimization flag for DEBUG build 2016-09-03 08:44:14 +05:30
Philipp Hasper
9b33717247 Added optional additional_headers for mg_send_mime_file 2016-08-30 08:52:01 +02:00
bel
7f7eaad07e Truncate strings in the test, so string compare functions can be used in the test (test framework does not support memcompare functions) 2016-08-21 22:45:52 +02:00
bel
85b9b7e09e Fix memory leak 2016-08-21 22:44:55 +02:00
bel
482b5602a3 Fix unused parameter warning 2016-08-20 23:35:54 +02:00
bel
c8b8e9f74d Add example for parsing uploaded files on the fly 2016-08-20 01:43:14 +02:00
bel
67eb68c5b7 Values read as multipart/form-data are not URL encoded 2016-08-20 01:40:26 +02:00
bel
edc3da2178 Document allow_sendfile_call option 2016-08-19 21:26:20 +02:00
bel
249b6f1419 Add allow_sendfile_call option
It seems the Linux `sendfile` system call is broken in some systems (operating system versions and/or file system types) - see #346
While it should be used if available as a default, there has to be a config option to disable it.
2016-08-19 20:55:44 +02:00
bel
22cd86348e Remove file used for Travis CI test 2016-08-16 08:43:17 +02:00