Commit Graph

54 Commits

Author SHA1 Message Date
levlam
ae9c80f6c7 Store content_length_ as int64. 2023-11-25 02:45:04 +03:00
levlam
511483e12c Fail HTTP request reading if unexpected end of data reached. 2023-11-25 02:34:37 +03:00
levlam
cbe62e306d Improve log message. 2023-04-16 21:09:51 +03:00
levlam
cf9866cfe4 Add HttpReader::parse_http_version. 2023-03-21 11:36:44 +03:00
levlam
694378f9ab Support percent-encoding for Content-Disposition parameter values as per RFC7578. 2023-02-06 22:44:01 +03:00
levlam
0adcac246a Use explicit as_mutable_slice to get MutableSlice. 2023-02-02 17:40:47 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
c2f540edf3 HttpReader: open temp file only in FormDataParseState::ReadFile state. 2022-12-07 13:43:27 +03:00
levlam
a26274a62b Ignore "none" Content-Encoding. 2022-11-29 13:15:33 +03:00
levlam
b7e4d567c7 HttpReader: fix keep-alive flag. 2022-11-22 15:46:53 +03:00
levlam
6319862890 Improve some emplace_back/push_back usage. 2022-10-27 12:53:53 +03:00
levlam
515a9cfb48 Minor improvements. 2022-08-18 23:31:14 +03:00
levlam
103c6ad1e8 Increase MAX_CONTENT_SIZE in HttpReader. 2022-08-14 13:30:25 +03:00
KnorpelSenf
789b9c0a55 Fix much typos 2022-01-25 16:07:36 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
1e49f6dc13 Use auto as variable type if it is initialized with a cast. 2021-10-20 01:27:02 +03:00
levlam
1caf0e6296 Fix multipart/form-data reading. 2021-09-06 20:13:32 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
48aecf8837 Improve quoted-string parsing in Content-Disposition header. 2021-03-21 02:58:29 +03:00
levlam
9d0f1eaaff HttpReader: gix Gzip high watermark. 2021-03-21 00:48:09 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
98adef1145 Move url_decode to tdutils.
GitOrigin-RevId: bd9ef4caa56996a96626b16998b423ab304b9ee6
2020-09-14 18:58:39 +03:00
levlam
421ec5fa8f Migrate to other thread when receiving a file in multipart/form-data.
GitOrigin-RevId: dbd6c1092f297c5b534508f070f49c311a756fe4
2020-07-24 15:32:33 +03:00
Arseny Smirnov
04667e86a7 HttpConnection: migrate connections to a dedicated scheduler
GitOrigin-RevId: 91ece928204ee732e81eaedd5e869810c5bea3b8
2020-07-23 19:47:12 +03:00
levlam
a02f8d610d Speed up tests execution.
GitOrigin-RevId: 5bcac989d87a04ef8510c47232e3525c4e610073
2020-07-23 17:59:48 +03:00
Arseny Smirnov
b344269688 HttpReader: minor fixes
GitOrigin-RevId: f003a56d3137e6af1dc5d1d30b995f3ab5b154db
2020-07-23 16:48:17 +03:00
levlam
813e2b2961 Fix misprint.
GitOrigin-RevId: cec8d77edaf44c5527af694300118ad28748f5f4
2020-07-23 02:12:00 +03:00
Arseny Smirnov
9ea1bc824f ByteFlow: backpressure draft
GitOrigin-RevId: 09adce82dd88fcf84f41e525e45b07da03acc0f6
2020-07-22 21:52:00 +03:00
levlam
3bc52d545f Do not try to parse empty content in HttpReader.
GitOrigin-RevId: 585a90f2e0236d56626961edd5f822dc4fcb04a2
2020-07-19 14:49:12 +03:00
levlam
ea4841a37c Unify enum constant name style.
GitOrigin-RevId: 2e36eef9b54c23da0d1bc9beb7e07af8835f702d
2020-06-15 04:23:47 +03:00
levlam
088a96ff15 Add some checks.
GitOrigin-RevId: 6c24e7d3d48ed823a45d6b106855f3a0f55a0db5
2020-05-19 15:11:21 +03:00
levlam
da6f582788 Fix 'Internal Server Error' spelling.
GitOrigin-RevId: 9dd65cc0e6ea64650647e9600e9b92ef9f373c7e
2020-04-27 20:10:13 +03:00
levlam
728d8d79f6 More enum class usages.
GitOrigin-RevId: 6680ce2276ced5b015a1f508f0b7b5f28b5f4a9b
2020-01-19 03:02:56 +03:00
levlam
9a40e695bb Return baack first_try in open_temp_file.
GitOrigin-RevId: de86f7b040272ed5bb0bd31ac49ce7ee76385914
2020-01-16 04:47:28 +03:00
levlam
a6be36e7f2 Always save temporary files in unique directory to ensure that all of them have different paths,
GitOrigin-RevId: 7113952a085f34a04eac38646f5a7a403bf9e9ba
2020-01-06 01:31:28 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
4ce54818a3 Add get_simple_config_firebase_realtime.
GitOrigin-RevId: 04b3aedcbe9ec1985f69cced34b0d890eedcf934
2019-11-19 19:01:12 +03:00
levlam
f27dac69e1 Fix JSON spelling.
GitOrigin-RevId: ea2602f1e9a808ff1e28eb289936f9608aae7517
2019-08-26 05:06:00 +03:00
levlam
93494cf048 Fix log messages style.
GitOrigin-RevId: f99e2e838220826d3dea7fdc33c43ac9918a5efd
2019-02-21 18:58:20 +03:00
levlam
8c3eb953ae Fix some g++4.9 CE.
GitOrigin-RevId: 0d4ed1e684fd623a7ab5849e4f0f7ec2fd182694
2019-02-13 02:29:52 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
5d5c55596e Minor improvements.
GitOrigin-RevId: 2f2099d91867ec302ff2d9426b6b088c8c625720
2018-11-01 20:08:20 +03:00
levlam
1d32712f6a HttpReader: allow empty filename.
GitOrigin-RevId: ad65a2e603d4628c6a4d29d26300a113303d0c27
2018-10-14 19:08:15 +03:00
levlam
6439cf8567 Fix cleaning temoorary file.
GitOrigin-RevId: 68fbf33125dc874bd24b67acae426dc6accedbe9
2018-08-29 01:57:09 +03:00
levlam
5379348651 Improve some logging.
GitOrigin-RevId: ec0a2f01c45b1ae7a74cd407f5c867e609e47d1f
2018-08-28 05:52:43 +03:00
levlam
692bc1f26d Fix leakage of a too big temporary file in HttpReader.
GitOrigin-RevId: b9bc7646013206fb30490cfb24e939eadb15e9c3
2018-08-27 15:52:47 +03:00
levlam
c19ab1adbc Minor HTTP-proxy fixes.
GitOrigin-RevId: 03d1ca116707c358cd1a414046222236ee2d09b4
2018-08-17 19:03:07 +03:00
levlam
e2a90b9edf Fix some string to Slice conversions.
GitOrigin-RevId: 79ddee1a90c633cc1b1df5c8e3d9917027bad0f3
2018-07-08 02:47:46 +03:00
levlam
48740add28 Init some uninitialized Result variables.
GitOrigin-RevId: 48e15168e48d131c53a93a5c2971c7dadeeeb270
2018-06-27 19:24:42 +03:00
Arseny Smirnov
ccb6553a5d Improve TRY_RESULT define
GitOrigin-RevId: 399a4102f795c0c44d3089a1a3b341393c9f0f95
2018-02-16 12:09:50 +03:00