diff options
author | Sean B. Palmer <http://inamidst.com/sbp/> | 2008-02-23 12:16:43 +0000 |
---|---|---|
committer | Sean B. Palmer <http://inamidst.com/sbp/> | 2008-02-23 12:16:43 +0000 |
commit | 2fb00589439a4efb3906d4e681e7ed815dcd180a (patch) | |
tree | 0a6b0ff1a4b5697fc7c3cb0aa3dc934246fcb874 /modules/head.py | |
parent | 7931fab14599b739c18c8f1ebcc24b75688dbc09 (diff) | |
download | bot-2fb00589439a4efb3906d4e681e7ed815dcd180a.tar.gz bot-2fb00589439a4efb3906d4e681e7ed815dcd180a.tar.bz2 bot-2fb00589439a4efb3906d4e681e7ed815dcd180a.zip |
Lots of fixes, changes, and new goodies.
Diffstat (limited to 'modules/head.py')
-rwxr-xr-x | modules/head.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/head.py b/modules/head.py index 4b75cb4..193286a 100755 --- a/modules/head.py +++ b/modules/head.py @@ -7,7 +7,7 @@ Licensed under the Eiffel Forum License 2. http://inamidst.com/phenny/ """ -import re, urllib +import re, urllib, urlparse from htmlentitydefs import name2codepoint import web from tools import deprecated @@ -66,7 +66,7 @@ def f_title(self, origin, match, args): status = str(info[1]) info = info[0] if status.startswith('3'): - uri = info['Location'] + uri = urlparse.urljoin(uri, info['Location']) else: break redirects += 1 |