actually print headers, meta tag
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>TextProxy</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>TextProxy</h1>
|
||||
<form action="/proxy.cgi" method="post">
|
||||
<form action="/proxy.cgi" method="get">
|
||||
<label for="u">Site: </label>
|
||||
<input name="u" id="u" type="url" autofocus required>
|
||||
<input type="submit" value="Go">
|
||||
|
||||
@@ -30,6 +30,7 @@ def main():
|
||||
|
||||
data = fetch_site(url)
|
||||
|
||||
print_headers()
|
||||
print(format_output(url, data))
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{} - TextProxy</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{0} - TextProxy</title>
|
||||
</head>
|
||||
<body>
|
||||
<pre>{}</pre>
|
||||
<h1>{0}</h1>
|
||||
<pre>{1}</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user