174 Commits

Author SHA1 Message Date
ducaale
20faf2c265 avoid printing extra line separators
For example, http -v --print= --follow httpbin.org/status/302 shouldn't
print any separators
2021-09-10 23:24:31 +03:00
ducaale
ae447b2ae3 Merge branch 'develop' into all-flag 2021-09-03 20:05:45 +03:00
Jan Verbeek
f5f24254c7 Remove stray stdout() check from test 2021-08-05 21:39:17 +02:00
Jan Verbeek
e6c8a050cf Merge remote-tracking branch 'origin/develop' into native-tls 2021-08-05 21:33:56 +02:00
Jan Verbeek
007719cd00 Add basic sanity test for --native-tls 2021-08-05 21:09:43 +02:00
Jan Verbeek
db7f09deb1 Warn if --native-tls is combined with --verify or --cert 2021-08-05 20:14:25 +02:00
ducaale
fa580d57dc Merge branch 'develop' into all-flag 2021-08-05 19:26:09 +03:00
ducaale
218202821a fix failing tests 2021-08-05 18:52:01 +03:00
ducaale
666d5d61b2 Merge branch 'develop' into sessions 2021-08-05 18:45:26 +03:00
Jan Verbeek
f8ea57bb95 Improve HTTPS + IP error message, refactor Cli/RequestItems 2021-08-05 17:38:05 +02:00
Jan Verbeek
7d8020a047 Include binary name in warnings and errors 2021-08-05 17:31:11 +02:00
Jan Verbeek
3c396b524b Send and display headers as title case
Resolves #166.
2021-08-04 20:31:49 +02:00
ducaale
ea0747d600 Merge branch 'sessions' into all-flag 2021-08-03 01:24:25 +03:00
ducaale
b6de2a327a Merge branch 'develop' into sessions 2021-08-03 01:23:06 +03:00
ducaale
97bd685e14 test that config errors don't effect the exit code 2021-08-02 20:35:55 +03:00
ducaale
aee1a42ddc test if args from config.json are overridden 2021-08-02 20:33:36 +03:00
ducaale
f85c2cdc8b add tests for reading args from config 2021-08-02 20:29:33 +03:00
ducaale
0d761a185b fix failed tests 2021-07-25 16:31:03 +03:00
ducaale
592f87cb84 Merge branch 'sessions' into all-flag 2021-07-24 19:54:58 +03:00
ducaale
158e56f63b Merge branch 'develop' into sessions 2021-07-24 19:35:14 +03:00
Jan Verbeek
f75a23c284 Add test for file upload with parameters 2021-07-20 22:19:03 +02:00
ducaale
17fb3aa12e point xh_config_dir to config_dir/xh 2021-07-01 16:28:52 +03:00
ducaale
022c19ffe4 replace XH_TEST_CONFIG_DIR with XH_CONFIG_DIR 2021-06-26 02:21:16 +03:00
ducaale
f556e2feef fix tests + clippy errors 2021-06-25 23:41:51 +03:00
ducaale
200f509506 Merge branch 'develop' into sessions 2021-06-25 23:35:10 +03:00
ducaale
db66c59d96 save --auth & --bearer into the auth section 2021-06-25 23:23:51 +03:00
ducaale
6a1352cf0b replace find().is_some() with any() 2021-06-25 17:41:32 +03:00
ducaale
7f22e77db4 test sent cookies when there are multiple sources 2021-06-25 17:33:17 +03:00
Mohamed Daahir
4912414e54
remove unnecessary pub
Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
2021-06-24 15:46:38 +03:00
ducaale
ace2c92ff0 enable reqwest's deflate feature
also updates accept-encoding to match HTTPie's
2021-06-22 17:04:31 +03:00
ducaale
28d7e5a0a1 support httpie's history_print flag 2021-06-18 22:30:00 +03:00
ducaale
86890887f4 Merge branch 'sessions' into all-flag 2021-06-15 16:00:13 +03:00
ducaale
1b02e89aab Merge branch 'develop' into sessions 2021-06-15 15:45:48 +03:00
ducaale
8a44c7a275 test check-status and httpie_compat_mode 2021-06-12 15:32:36 +03:00
ducaale
117821192b Merge branch 'sessions' into all-flag 2021-05-14 14:52:09 +01:00
ducaale
62ad4c53b1 Merge branch 'develop' into sessions 2021-05-14 14:50:29 +01:00
ducaale
2641b174f4 enforce identity for accept-encoding if -d in use 2021-05-14 14:30:19 +01:00
ducaale
f32011482c buffer request body before following redirects 2021-05-14 12:26:01 +01:00
ducaale
123e192ee9 test redirect behaviour for non-cloneable bodies 2021-05-13 23:19:11 +01:00
ducaale
d390f9f457 test removal of content-headers in 302 redirects 2021-05-13 22:28:41 +01:00
ducaale
ed0f0a1dba test removal of sensitive headers 2021-05-13 22:25:02 +01:00
ducaale
0db15f16e0 test method and body behaviour when redirecting 2021-05-13 17:08:04 +01:00
ducaale
efe5617568 add test for max-redirects 2021-05-13 16:25:19 +01:00
ducaale
f98fa02c18 add a basic test for the all flag 2021-05-12 22:36:45 +01:00
ducaale
0ba627de4a Merge branch 'develop' into sessions 2021-05-12 21:48:46 +01:00
Jan Verbeek
149de19d23 Print streamed request bodies 2021-05-12 20:30:49 +02:00
ducaale
bf9d26db0b Merge branch 'develop' into sessions 2021-05-12 19:17:19 +01:00
Jan Verbeek
38de30bd82 Support reading request body from file 2021-05-09 18:57:37 +02:00
ducaale
37ad4f4950 use dir created by tempfile as config_dir in tests 2021-05-09 01:11:39 +01:00
ducaale
abec244ea4 test that session files are created in read only mode 2021-05-08 20:05:11 +01:00