From cdd3e5fc11bcac1b099af800855e43a8020402e9 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 9 Nov 2017 10:08:39 +1100 Subject: [PATCH] Add shortcut syntax to mf2 script for fetching pages over HTTPS --- local/bin/mf2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/local/bin/mf2 b/local/bin/mf2 index cf7b6c6..6a58a9a 100755 --- a/local/bin/mf2 +++ b/local/bin/mf2 @@ -12,6 +12,8 @@ def parse(**kwargs): for arg in args: + if arg.startswith('//'): + arg = 'https:' + arg if arg.startswith('http'): doc = parse(url=arg) elif arg == '-':