[/pygopherd/head: changeset 73 jgoerzen**20020405014951 More HTTP updates. ] { hunk ./conf/pygopherd.conf 103 - '1' : 'folder.gif'} + '1' : 'folder.gif', + 'i' : 'blank.gif'} hunk ./pygopherd/protocols/http.py 30 + self.wfile.write("Last-Modified: Fri, 14 Dec 2001 21:19:47 GMT\n") hunk ./pygopherd/protocols/http.py 32 + if self.requestparts[0] == 'HEAD': + return hunk ./pygopherd/protocols/http.py 65 - url = entry.getselector() + url = urllib.quote(entry.getselector()) hunk ./pygopherd/protocols/http.py 69 - (entry.gethost(self.server.server_name), + (urllib.quote(entry.gethost(self.server.server_name)), hunk ./pygopherd/protocols/http.py 71 - entry.gettype('0'), - entry.getselector()) + urllib.quote(entry.gettype('0')), + urllib.quote(entry.getselector())) hunk ./pygopherd/protocols/http.py 83 - retstr += '' % urllib.quote(url) + retstr += '' % url hunk ./pygopherd/protocols/http.py 125 + name = 'generic.gif' hunk ./pygopherd/protocols/http.py 127 - return '' % \ - ('/PYGOPHERD-HTTPPROTO-ICONS/' + \ - self.iconmapping[entry.gettype()]) - else: - return ' ' + name = self.iconmapping[entry.gettype()] + return ' * ' % \ + ('/PYGOPHERD-HTTPPROTO-ICONS/' + name) hunk ./pygopherd/protocols/http.py 148 -'47494638396114001600c20000ffffffccffff99999933333300000000000000000000000021fe4e546869732061727420697320696e20746865207075626c696320646f6d61696e2e204b6576696e204875676865732c206b6576696e68406569742e636f6d2c2053657074656d62657220313939350021f90401000001002c000000001400160000035838babcf1300c40ab9d23be693bcf11d75522b88dd7057144eb52c410cf270abb6e8db796e00b849aadf20b4a6ebb1705281c128daca412c03c3a7b50a4f4d9bc5645dae9f78aed6e975932baebfc0e7ef0b84f1691da8d09003b'} +'47494638396114001600c20000ffffffccffff99999933333300000000000000000000000021fe4e546869732061727420697320696e20746865207075626c696320646f6d61696e2e204b6576696e204875676865732c206b6576696e68406569742e636f6d2c2053657074656d62657220313939350021f90401000001002c000000001400160000035838babcf1300c40ab9d23be693bcf11d75522b88dd7057144eb52c410cf270abb6e8db796e00b849aadf20b4a6ebb1705281c128daca412c03c3a7b50a4f4d9bc5645dae9f78aed6e975932baebfc0e7ef0b84f1691da8d09003b', + +'generic.gif': +'47494638396114001600c20000ffffffccffff99999933333300000000000000000000000021fe4e546869732061727420697320696e20746865207075626c696320646f6d61696e2e204b6576696e204875676865732c206b6576696e68406569742e636f6d2c2053657074656d62657220313939350021f90401000001002c000000001400160000035038babcf1300c40ab9d23be693bcf11d75522b88dd705892831b8f08952446d13f24c09bc804b3a4befc70a027c39e391a8ac2081cd65d2f82c06ab5129b4898d76b94c2f71d02b9b79afc86dcdfe2500003b', + +'blank.gif': +'47494638396114001600a10000ffffffccffff00000000000021fe4e546869732061727420697320696e20746865207075626c696320646f6d61696e2e204b6576696e204875676865732c206b6576696e68406569742e636f6d2c2053657074656d62657220313939350021f90401000001002c00000000140016000002138c8fa9cbed0fa39cb4da8bb3debcfb0f864901003b'} }