typos
This commit is contained in:
@@ -8,7 +8,7 @@ cgitb.enable()
|
|||||||
|
|
||||||
def fetch_site(url):
|
def fetch_site(url):
|
||||||
data = subprocess.check_output(['w3m', '-dump', url])
|
data = subprocess.check_output(['w3m', '-dump', url])
|
||||||
return output.decode()
|
return data.decode()
|
||||||
|
|
||||||
def format_output(url, data):
|
def format_output(url, data):
|
||||||
with open('template.html', 'r') as f:
|
with open('template.html', 'r') as f:
|
||||||
@@ -22,7 +22,7 @@ def print_headers():
|
|||||||
def main():
|
def main():
|
||||||
form = cgi.FieldStorage()
|
form = cgi.FieldStorage()
|
||||||
|
|
||||||
url = form.getValue('u', '')
|
url = form.getvalue('u', '')
|
||||||
if not url:
|
if not url:
|
||||||
print('Status: 400 Bad Request\r\n\r\n')
|
print('Status: 400 Bad Request\r\n\r\n')
|
||||||
print('Missing required field\r\n\r\n')
|
print('Missing required field\r\n\r\n')
|
||||||
|
|||||||
Reference in New Issue
Block a user