Changeset 10060 in genesis
- Timestamp:
- Mar 8, 2012, 8:10:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10058 r10060 592 592 output = "" 593 593 if not uri[0]: 594 output += "Content-type:text/html\r\n\r\n" 595 output += generate_title(get_hostlist()) 594 if os.environ['HTTP_USER_AGENT'].startswith('fetch '): 595 output += "Content-type:text/plain\r\n\r\n" 596 output += '\n'.join(get_hostlist()) 597 else: 598 output += "Content-type:text/html\r\n\r\n" 599 output += generate_title(get_hostlist()) 596 600 elif len(uri) == 1: 597 601 output += "Content-type:text/plain\r\n\r\n"
Note:
See TracChangeset
for help on using the changeset viewer.