Attachment 'fix-twisted-httphost.diff'
Download 1 --- orig/MoinMoin/request.py
2 +++ mod/MoinMoin/request.py
3 @@ -583,7 +583,10 @@
4 self.server_protocol = self.twistd.clientproto
5 self.server_name = self.twistd.getRequestHostname().split(':')[0]
6 self.server_port = str(self.twistd.getHost()[2])
7 - self.http_host = self.server_name
8 + if self.server_port != ('80', '443')[self.isSSL()]:
9 + self.http_host = self.server_name + ':' + self.server_port
10 + else:
11 + self.http_host = self.server_name
12 self.script_name = "/" + '/'.join(self.twistd.prepath[:-1]) # "" XXX
13 self.path_info = "/" + pagename
14 if self.twistd.postpath:
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.