Give the nice message about not being an HTTP proxy an <h1> headline

svn:r1139
This commit is contained in:
Peter Palfrader
2004-02-27 01:33:02 +00:00
parent a9f3ad9b0e
commit b943f1a3c9
+5
View File
@@ -550,11 +550,16 @@ int fetch_from_buf_socks(buf_t *buf, socks_request_t *req) {
"<title>Tor is not an HTTP Proxy</title>\n"
"</head>\n"
"<body>\n"
"<h1>Tor is not an HTTP Proxy</h1>\n"
"<p>\n"
"It appears you have configured your web browser to use Tor as an HTTP Proxy.\n"
"This is not correct: Tor provides a SOCKS proxy. Please configure your\n"
"client accordingly.\n"
"</p>\n"
"<p>\n"
"See <a href=\"http://freehaven.net/tor/cvs/INSTALL\">http://freehaven.net/tor/cvs/INSTALL</a> for more information.\n"
"<!-- Plus this comment, to make the body response more than 512 bytes, so IE will be willing to display it. Comment comment comment comment comment comment comment comment comment comment comment comment.-->\n"
"</p>\n"
"</body>\n"
"</html>\n"
);