Corretto typo.

Leonardo [2010-05-25 12:42]
Corretto typo.
Filename
pywhois.py
diff --git a/pywhois.py b/pywhois.py
index 1828997..75593f1 100644
--- a/pywhois.py
+++ b/pywhois.py
@@ -326,11 +326,17 @@ class WhoisHTTPRequestHandler(BaseHTTPRequestHandler):

         # Creiamo effettivamente la pagina
         html =  "<html>\n"
-        html += "<head>\n<title>Whois answer for %s</title>\n" % request
+        if request:
+            html += "<head>\n<title>Whois answer for %s</title>\n" % request
+        else:
+            html += "<head>\n<title>Whois server at %s</title>\n" % "whois.leo.gnet"
         html += "</head>\n"
         html += self.style_block
         html += "<body>\n"
-        html += "<h1>Whois answer for %s</h1>\n<p>" % request
+        if request:
+            html += "<h1>Whois answer for %s</h1>\n<p>" % request
+        else:
+            html += "<h1>Whois server at %s</h1>\n<p>" % "whois.leo.gnet"
         html += string
         html += self.request_form
         html += "</p></body>\n"
ViewGit