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

2380 Commits

Author SHA1 Message Date
bel
de2d9cf39e mg_get_var unit test 2015-07-25 18:49:31 +02:00
bel
34716ac85a Found asymmetry in API - add TODO 2015-07-25 18:42:53 +02:00
bel
6414e21637 Again more unit tests 2015-07-25 18:35:11 +02:00
bel
f6b254e9a7 Unit test: url encoding in not unique 2015-07-25 18:05:11 +02:00
bel
7071633382 Fix copy/paste error in unit test 2015-07-25 17:54:45 +02:00
bel
82be785f9f Fix bugs in unit tests 2015-07-25 14:50:55 +02:00
bel
8bc9bedd58 Fix signed/unsigned mix in unit tests 2015-07-25 14:31:31 +02:00
bel
1c2cd7dbbb Add more unit tests 2015-07-25 14:20:54 +02:00
bel
5b19040a5c Add test_parse_port_string unit test 2015-07-25 13:50:45 +02:00
bel
f3d028713e Encoding/decoding test should also test url encoding 2015-07-25 13:23:33 +02:00
bel
8a65123257 Add some none non alpha string to the encoding/decoding test 2015-07-25 10:52:25 +02:00
bel
27645fb306 Fix warnings in unit test 2015-07-25 00:03:14 +02:00
bel
a6bc447564 Variables could be unused in unit test 2015-07-24 23:57:13 +02:00
bel
ff5d5c3db8 Add deleted ) in unit test 2015-07-24 23:53:13 +02:00
bel
7a3782455e Add type casts to unit test 2015-07-24 23:49:04 +02:00
bel
3d62777232 Port more unit tests to the new framework 2015-07-24 23:33:27 +02:00
bel
7010b979a7 Add unit test for internal option parsing 2015-07-24 23:28:33 +02:00
bel
b88591df5a Activate encoding unit test 2015-07-24 23:12:45 +02:00
bel
a77a97ec6c Add some unit tests for encoding 2015-07-24 23:09:44 +02:00
bel
884e539a88 Mark copyright of copied/adapted functions 2015-07-24 21:44:28 +02:00
bel
d5b93c7917 Fix unit test: mg_md5 returns lowercase ascii string 2015-07-21 21:31:15 +02:00
bel
5f622d38b2 Fix copy/paste error in unit test (mg_get_cookie returns length) 2015-07-21 21:29:05 +02:00
bel
18b0e46c03 New unit test for cookies 2015-07-21 20:30:17 +02:00
bel
26748e42b9 Remove old public unit test for cookies 2015-07-21 20:15:27 +02:00
bel
e535313be9 Fix another 'Mircosoft does not like standard C' warning 2015-07-19 23:18:50 +02:00
bel
cbf97c0967 Autoformat public and private integration tests using clang-format 2015-07-19 22:58:05 +02:00
bel
129d410f99 More CI tests 2015-07-19 22:54:20 +02:00
bel
793ef45a10 More CI tests 2015-07-19 21:50:32 +02:00
bel
e4bb9530f6 Remove HTTPS CI test for the moment 2015-07-19 00:19:37 +02:00
bel
4683073b5c Add some CI tests 2015-07-19 00:15:19 +02:00
bel
ce422e16d9 Split tests between HTTP and HTTPS, so it is clear which one failed 2015-07-18 23:31:49 +02:00
bel
b461763953 Add some CI tests 2015-07-18 23:16:53 +02:00
bel
d3d94716ce Fix sleep function in public test 2015-07-18 22:53:07 +02:00
bel
9cedcf74dc Start/Stop server in public test 2015-07-18 22:42:15 +02:00
bel
8dea7de0c4 Dump file content as hex in handle_form example 2015-07-18 21:28:03 +02:00
bel
2cd66c159d Update README 2015-07-18 00:36:38 +02:00
bel2125
df69eae80d Merge pull request #176 from vcatechnology/ci-third-party-output
CI third party output
2015-07-17 21:30:27 +02:00
Matt Clarkson
04e604ba7f Travis third party source build logging 2015-07-17 15:46:55 +01:00
Matt Clarkson
a64121349d Appveyor third party source build logging 2015-07-17 15:46:51 +01:00
bel2125
49216730d3 Merge pull request #174 from vcatechnology/websockets
Websocket support for CI build, some pointer casts
2015-07-17 16:30:58 +02:00
bel2125
915c9e6fe4 Merge pull request #173 from vcatechnology/license-update
Correct licenses for newly added files (do not copy paste licenses)
2015-07-17 16:28:30 +02:00
Matt Clarkson
9952f4f615 Enable websockets on travis 2015-07-15 22:33:01 +01:00
Matt Clarkson
0ef1eeadfa Enable websockets on appveyor 2015-07-15 22:33:01 +01:00
Matt Clarkson
b13178f0ac Cast pointer conversions through void
We are taking a char * and casting it to uint32_t or uint16_t. This
increases the required alignment to 4 and 2 respectively. On most
platforms alignment of 16bits is enough and we are writing to offsets
that a divisable by 2 so we shouldn't have any segmentation faults.
2015-07-15 22:33:01 +01:00
Matt Clarkson
857d27f918 Resolve uninitialized variables with MSVC
MSVC says that:

  * civetweb.c(7158): warning C4701: potentially uninitialized local variable 'mask_len'
  * civetweb.c(7147): warning C4701: potentially uninitialized local variable 'data_len'
2015-07-15 22:33:01 +01:00
Matt Clarkson
b0bf38c0a9 Make the cast to size_t explicit
The 'n' variable is checked for being negative a few lines earlier so this
is a safe cast
2015-07-15 22:33:01 +01:00
Matt Clarkson
0dc73824a2 Cast to size_t rather than int
The result of the bit shift is assigned to a size_t data_len so we should
do the shift in size_t space.
2015-07-15 22:33:01 +01:00
Matt Clarkson
2a71a1dd6f Make implicit conversion to size_t explicit
The code does the subtraction of two integers to determine the data
length. The data length is specified as size_t so an implicit
conversion is happening. This commit just makes that conversion
explicit.
2015-07-15 22:33:01 +01:00
Matt Clarkson
f8a93588c1 Use the container based travis builds
Travis has upgraded to use docker images on EC2. This allows much faster
build times. This patch forces the build to use the containers.
2015-07-15 22:23:49 +01:00
Matt Clarkson
a1c995f2a1 Update test file license 2015-07-15 21:11:12 +01:00