mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Updated README.
This commit is contained in:
1 parent
1aa77017d5
commit
52dd6adaa3
2 files changed
+16
-2
No files matched your search
+2
-1
@@ -138,8 +138,9 @@ class Parser(ArgumentParser):
|
||||
if not (self.args.url.startswith((HTTP, HTTPS))):
|
||||
# Default to 'https://' if invoked as `https args`.
|
||||
scheme = HTTPS if self.env.progname == 'https' else HTTP
|
||||
|
||||
# See if we're using curl style shorthand for localhost (:3000/foo)
|
||||
shorthand = re.match(r'^:(?!:)(\d*)(\/?.*)$', self.args.url)
|
||||
shorthand = re.match(r'^:(?!:)(\d*)(/?.*)$', self.args.url)
|
||||
if shorthand:
|
||||
port = shorthand.group(1)
|
||||
rest = shorthand.group(2)
|
||||
|
||||
Reference in new issue
Block a user