1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Add warnings when there is no incoming data from stdin (#1256)

* Add warnings when there is no incoming data from stdin

* Pass os.environ as well

* Apply suggestions
This commit is contained in:
Batuhan Taskaya
2022-01-12 17:07:34 +03:00
committed by GitHub
parent 508788ca56
commit 00c859c51d
5 changed files with 144 additions and 4 deletions

View File

@@ -188,7 +188,7 @@ def program(args: argparse.Namespace, env: Environment) -> ExitStatus:
args.follow = True # --download implies --follow.
downloader = Downloader(output_file=args.output_file, progress_file=env.stderr, resume=args.download_resume)
downloader.pre_request(args.headers)
messages = collect_messages(args=args, config_dir=env.config.directory,
messages = collect_messages(env, args=args,
request_body_read_callback=request_body_read_callback)
force_separator = False
prev_with_body = False