Permalink
Browse files

fcgi adaptation: HTTP_HOST

git-svn-id: http://feedvalidator.googlecode.com/svn/trunk@743 34a10a33-d82d-0410-ba40-81c901463ecc
  • Loading branch information...
1 parent 6ebc6f1 commit 4e8ef5792ccf07b1b5c09c4f1cbfbd23325ba110 @rubys committed Mar 24, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 config.py
View
3 config.py
@@ -1,6 +1,7 @@
# Default URL of the validator itself... feel free to beautify as you like
import os
-HOMEURL = 'http://' + os.environ['HTTP_HOST'] + os.environ['SCRIPT_NAME']
+HOMEURL = os.environ['HTTP_HOST'] + os.environ['SCRIPT_NAME']
+if not HOMEURL.startswith('http://'): HOMEURL = 'http://' + HOMEURL
# This is where the CGI itself is... other supporting scripts (like
# feedfinder) may be placed here.

0 comments on commit 4e8ef57

Please sign in to comment.