瀏覽代碼

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

svn:r1139
Peter Palfrader 21 年之前
父節點
當前提交
1bc2384c5a
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/or/buffers.c

+ 5 - 0
src/or/buffers.c

@@ -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"
 );