mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Remove automatic config file creation to avoid concurrency issues.
Close #788 Close #812
This commit is contained in:
1 parent
f0058eeaee
commit
f202f338a4
11 files changed
+178
-141
No files matched your search
@@ -61,7 +61,6 @@ class HTTPieArgumentParser(argparse.ArgumentParser):
|
||||
def parse_args(
|
||||
self,
|
||||
env: Environment,
|
||||
program_name='http',
|
||||
args=None,
|
||||
namespace=None
|
||||
) -> argparse.Namespace:
|
||||
@@ -89,7 +88,7 @@ class HTTPieArgumentParser(argparse.ArgumentParser):
|
||||
if self.has_stdin_data:
|
||||
self._body_from_file(self.env.stdin)
|
||||
if not URL_SCHEME_RE.match(self.args.url):
|
||||
if os.path.basename(program_name) == 'https':
|
||||
if os.path.basename(env.program_name) == 'https':
|
||||
scheme = 'https://'
|
||||
else:
|
||||
scheme = self.args.default_scheme + "://"
|
||||
|
||||
Reference in new issue
Block a user