Skip to content

Commit 4e8ef57

Browse files
committed
fcgi adaptation: HTTP_HOST
git-svn-id: http://feedvalidator.googlecode.com/svn/trunk@743 34a10a33-d82d-0410-ba40-81c901463ecc
1 parent 6ebc6f1 commit 4e8ef57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Default URL of the validator itself... feel free to beautify as you like
22
import os
3-
HOMEURL = 'http://' + os.environ['HTTP_HOST'] + os.environ['SCRIPT_NAME']
3+
HOMEURL = os.environ['HTTP_HOST'] + os.environ['SCRIPT_NAME']
4+
if not HOMEURL.startswith('http://'): HOMEURL = 'http://' + HOMEURL
45

56
# This is where the CGI itself is... other supporting scripts (like
67
# feedfinder) may be placed here.

0 commit comments

Comments
 (0)