Commits

Anonymous committed 479d884

Fixed bug in BaseUrlFilter (realized that X-Forwarded-Host doesn't include the protocol)

  • Participants
  • Parent commits c000f47

Comments (0)

Files changed (1)

File cherrypy/lib/filter/baseurlfilter.py

 
     def afterRequestHeader(self):
         if self.useXForwardedHost:
-            newBaseUrl = cpg.request.headerMap.get(
+            newBaseUrl = 'http://' + cpg.request.headerMap.get(
                 "X-Forwarded-Host", self.baseUrl)
         else:
             newBaseUrl = self.baseUrl