Add comment to specify why skipping process_url

Co-authored-by: Jakub Rybak <laykos0@protonmail.com>
This commit is contained in:
Elias Floreteng 2025-02-26 14:55:19 +00:00
parent e8c423b4ec
commit c37e5aefe6

View File

@ -204,6 +204,8 @@ class HTTPieArgumentParser(BaseHTTPieArgumentParser):
def _process_url(self): def _process_url(self):
if self.args.http_file: if self.args.http_file:
# do not add default scheme
# treat URL as a filename if --http-file is specified
return return
if self.args.url.startswith('://'): if self.args.url.startswith('://'):
# Paste URL & add space shortcut: `http ://pie.dev` → `http://pie.dev` # Paste URL & add space shortcut: `http ://pie.dev` → `http://pie.dev`