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