mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Store prompted passwords in local sessions (#1239)
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
This commit is contained in:
1 parent
05c02f0f39
commit
17ed3bb8c5
2 files changed
+25
-10
No files matched your search
@@ -296,6 +296,10 @@ class HTTPieArgumentParser(BaseHTTPieArgumentParser):
|
||||
' --ignore-stdin is set.'
|
||||
)
|
||||
credentials.prompt_password(url.netloc)
|
||||
|
||||
if (credentials.key and credentials.value):
|
||||
plugin.raw_auth = credentials.key + ":" + credentials.value
|
||||
|
||||
self.args.auth = plugin.get_auth(
|
||||
username=credentials.key,
|
||||
password=credentials.value,
|
||||
|
||||
Reference in new issue
Block a user