Commit Graph

90 Commits

Author SHA1 Message Date
Alex Hultman d1da7cc248 Nicer error pages 2023-05-28 11:47:33 +02:00
Alex Hultman e50dc4d506 We need a name to tell it's us 2023-05-28 11:08:33 +02:00
Alex Hultman 919a3bbeba Add http errors 2023-05-28 10:12:50 +02:00
Alex Hultman 7999d09286 Restore PROXY v2 support 2023-05-28 06:37:52 +02:00
Wojciech Wierchoła 8410f7ee6b Fix chunked body handling in fallback routine (#1585) 2023-03-06 11:36:19 +01:00
Alex Hultman 654b4558a4 Fix recent UB 2022-11-04 17:04:19 +01:00
rehans f687c0728c Use ULL (unsigned long long) instead of UL (#1509) 2022-11-02 11:20:10 +01:00
Alex Hultman c1fb1d5070 Fix header parsing 2022-11-01 00:38:51 +01:00
Alex Hultman 399204dbae Reject chunk size overflow, non-hex chunk size 2022-10-31 18:58:01 +01:00
Alex Hultman 75aece1e55 Fix proxy build 2022-10-31 17:50:01 +01:00
Alex Hultman 2b850f76d3 Case sensitive method, trim trailing whitespace (correctly), host header may be empty 2022-10-31 03:47:08 +01:00
Alex Hultman cca4610d5d Make it actually work 2022-10-30 21:36:34 +01:00
uNetworkingAB d76e2362d8 Make that correctilier 2022-10-30 21:17:43 +01:00
uNetworkingAB 1bd6807a21 Make that correct 2022-10-30 21:14:39 +01:00
uNetworkingAB fc51d2b4d6 Make that in batch 2022-10-30 21:10:01 +01:00
uNetworkingAB c613a4cb9a Only accept alnum + hypen field names 2022-10-30 20:41:24 +01:00
uNetworkingAB d174a7ed24 Update HttpParser.h 2022-10-24 22:30:50 +02:00
uNetworkingAB 8f85fadd02 Add RFC9110 reference 2022-10-24 22:25:48 +02:00
Alex Hultman 0b590c923e Minor fixup for request line 2022-10-24 20:25:56 +02:00
uNetworkingAB 368a4b41de Do not allow invalid chars in header value 2022-10-24 19:59:14 +02:00
uNetworkingAB 74dac77adb Never accept whitespace between key and colon 2022-10-24 19:02:04 +02:00
uNetworkingAB 22f0b04a1d Break if missing host header 2022-10-24 18:46:21 +02:00
Alex Hultman f0586366da Take some from jarred 2022-10-23 03:41:03 +02:00
Alex Hultman f762ede7d1 Do not support HTTP/1.0 2022-10-23 02:10:32 +02:00
Alex Hultman c1fd0e4050 Be strict with content-length, use fullptr as error 2022-10-23 01:42:32 +02:00
Alex Hultman 05523997db The rules are way simpler than so 2022-10-22 23:35:58 +02:00
Alex Hultman d18deb8fe3 Be more strict with content-length, transfer-encoding 2022-10-22 00:43:58 +02:00
Alex Hultman 6cb37f9b00 Require explicit transfer-encoding: chunked for said parsing to begin 2022-10-17 21:34:55 +02:00
Alex Hultman 9428c55053 Use new chunked encoding parser 2022-10-08 08:16:55 +02:00
Alex Hultman eca96bbc74 Support chunked transfer-encoding in fast path 2022-10-07 03:49:22 +02:00
Alex Hultman 3a53ada17d Experimental parser optimizations 2022-10-03 01:16:40 +02:00
Alex Hultman 77685b7f9d Whoops 2022-07-11 03:44:25 +02:00
Alex Hultman ed14dc79b6 Try memchr_r 2022-07-11 03:42:51 +02:00
Alex Hultman 44af0e5710 Fix HttpParser/MessageParser for bytes above 7-bit ASCII 2022-04-20 13:13:12 +02:00
ggyy ce641a4c09 fix compile error on windows(visual studio 2022) (#1386) 2021-11-24 15:12:23 +01:00
Alex Hultman b35978e1f3 I'm a total moron 2021-02-22 00:59:28 +01:00
Alex Hultman acbe52518f Remove f2, add ofats::any_invocable 2021-02-19 07:09:55 +01:00
Alex Hultman 5d6bb74bf6 Fix overflowing conversion to int in getParameter 2021-02-19 05:20:28 +01:00
Alex Hultman 3347bcc4b2 Questionable: support ancient Http and connection: close 2021-01-11 13:13:06 +01:00
Alex Hultman e30217e787 PROXY parsing has to be done as part of every getHeaders 2020-12-02 22:17:39 +01:00
Alex Hultman 0a8264e776 Document & fix PROXY regression/bug 2020-12-02 03:37:56 +01:00
Alex Hultman fe553742f2 Fix last warnings, SocketContextOptions, BloomFilter 2020-12-01 05:45:53 +01:00
Alex Hultman a8b33acf7b Fix Http regression from warnings fix 2020-12-01 04:37:43 +01:00
Alex Hultman ad1d6fac08 Fix -Wunused-parameter 2020-12-01 01:10:00 +01:00
Alex Hultman ad0a961430 Experimental: Fix all signed/unsigned warnings 2020-11-30 23:00:36 +01:00
Alex Hultman a1445d9459 Add QueryParser.h for decoding URI queries by key 2020-09-28 12:15:01 +02:00
Alex Hultman dd0f220040 Add comment regarding BloomFilter 2020-08-06 17:37:00 +02:00
Alex Hultman 2a791726c2 Bloom filter has to be reset 2020-08-06 17:12:16 +02:00
Alex Hultman 025415d1a0 Clean-ups, bump copyright date 2020-06-08 13:31:06 +02:00
Alex Hultman 0d9cb39db6 Silence warnings, check length 2020-06-06 20:26:59 +02:00