mirror of
https://github.com/httpie/cli.git
synced 2025-03-13 14:28:50 +01:00
Add comment to specify why skipping process_url
Co-authored-by: Jakub Rybak <laykos0@protonmail.com>
This commit is contained in:
parent
e8c423b4ec
commit
c37e5aefe6
@ -204,6 +204,8 @@ class HTTPieArgumentParser(BaseHTTPieArgumentParser):
|
||||
|
||||
def _process_url(self):
|
||||
if self.args.http_file:
|
||||
# do not add default scheme
|
||||
# treat URL as a filename if --http-file is specified
|
||||
return
|
||||
if self.args.url.startswith('://'):
|
||||
# Paste URL & add space shortcut: `http ://pie.dev` → `http://pie.dev`
|
||||
|
Loading…
Reference in New Issue
Block a user