[Bug 4213] New: urlbase calculation is too simplistic

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Apr 1 14:21:19 CDT 2014


http://bz.selenic.com/show_bug.cgi?id=4213

          Priority: normal
            Bug ID: 4213
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: urlbase calculation is too simplistic
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: mpm at selenic.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.9.1
         Component: hgweb
           Product: Mercurial

We build urlbase (used in RSS feeds, for instance) from SERVER_NAME:

http://www.selenic.com/hg/file/e259d4c462b5/mercurial/hgweb/hgweb_mod.py#l327

The WSGI spec encourages us to use HTTP_HOST where available. We should
probably use the more comprehensive algorithm here:

http://legacy.python.org/dev/peps/pep-0333/#url-reconstruction

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list