Remove a superflous line of code and change the redirect response.

This should fix the first two of the five remarks made
by Greg Stein yesterday


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@342 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/V0_8
pefu 2001-11-18 14:04:41 +00:00
parent fcec542cfb
commit a0ece2036e
1 changed files with 1 additions and 2 deletions

View File

@ -98,7 +98,7 @@ def serve(port, callback=None):
def redirect(self):
"""redirect the browser to the viewcvs URL"""
self.send_response(200, "redirection follows")
self.send_response(301, "moved (redirection follows)")
self.send_header("Content-type", "text/html")
self.end_headers()
self.wfile.write("""<html>
@ -459,5 +459,4 @@ if __name__ == '__main__':
import viewcvs
import apache_icons
options = Options()
options.use_cvsgraph = 0
cli(sys.argv)