except Exception as e:
return 'Unknown error: %s %r' % (type(e).__name__, e.args)
- return response
+ return response, try_aia
def goturl(url):
if regex.match(url):
return None
- response = _do_request(url)
+ response, used_aia = _do_request(url)
if isinstance(response, stringbase):
return response
else:
output.append("[no length] ")
+ if used_aia:
+ output.append("[AIA] ")
+
# Try to add title if HTML
if c_type == 'text/html':
try: