1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-16 11:21:57 +03:00
Commit Graph

62 Commits

Author SHA1 Message Date
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
be17586511 Adapt unit test for the new parameter of parse_port_string 2016-09-18 15:56:32 +02:00
bel
aeb8721503 Adapt test to changes in remove_double_dots_and_double_slashes 2016-07-23 22:18:29 +02:00
bel
7accd96c7e RFC 7230 obsoletes multiline header from RFC 2616
According to
https://tools.ietf.org/html/rfc7230#section-3.2.4
multiline header can return "400 Bad Request".

See #318
2016-06-09 22:20:16 +02:00
bel
dcac52b0ea New unit test for HTTP authentication (part 2/?) 2016-05-16 22:46:14 +02:00
bel
3426051cb7 Fix some unit tests 2016-05-15 23:46:12 +02:00
bel
3fcfbd7d8b Fix some issues in new unit tests 2016-05-15 19:17:50 +02:00
bel
86159dce25 Add more unit tests 2016-05-15 00:59:35 +02:00
bel
e2508e2298 Auto format code 2016-05-09 20:48:01 +02:00
bel
c58dac341f Add unit test for mg_(v)snprintf 2016-05-09 20:47:47 +02:00
bel
09bc47d600 Add unit tests for handle_form 2016-05-06 22:59:06 +02:00
Christian Mauderer
ad10b1cc98 Disable date string parsing test for NO_CACHING. 2016-05-04 22:27:48 +02:00
bel
7b51e4ce60 Improve unit tests 2016-04-01 21:57:51 +02:00
bel
bd9c20e04f Fix signed/unsigned warning in unit test 2016-04-01 20:33:11 +02:00
bel
3a31adef54 Correct typing error in unit test 2016-03-31 20:59:48 +02:00
bel
4f38f7fb70 Additional unit tests 2016-03-30 23:33:15 +02:00
bel2125
3eb145e58c Update repository for Visual Studio 2015 build 2016-03-26 20:07:45 +01:00
bel
b61763b836 Adapt unit test: parse_http_headers now works differently on invalid HTTP headers
Before parsing "GET / HTTP/1.1\r\nA: foo bar\r\nB: bar\r\nbaz\r\n\r\n"
returned a header field "baz\r\n\r" - this makes no sense.
Now it returns a header field "baz" without value.
2016-01-18 21:37:15 +01:00
bel
3082e09033 Adapt unit test for rewritten alloc_vprintf function 2015-12-30 00:36:20 +01:00
bel
bbbe470d9f Unit tests: rename all test case instances 2015-11-26 23:39:20 +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
4de9090577 Apply revised clang-format (#207) to all actively maintained source files 2015-10-05 20:58:14 +02:00
bel
e29dbdc5a0 Support absolute uri (#197) - (Step 6/?) 2015-09-02 23:53:38 +02:00
bel2125
30afbf03f7 Set a minumum test timeout for all unit tests
See #94 (https://github.com/civetweb/civetweb/issues/94#issuecomment-131843701)
2015-08-17 19:15:09 +02:00
bel
bcf7f23742 Unit test: Add test for websocket server and client 2015-08-08 22:50:37 +02:00
bel
19c4b48d94 Add some URIs to unit test 2015-08-06 23:12:14 +02:00
Matt Clarkson
240c6ac79a Resolve unused variable warning/error
When websockets or Lua are not compiled in then the two variables are not
used in the testing. We can put them inside the preprocessor defines
2015-08-03 10:37:39 +01: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