Changeset 10060 in genesis for tools


Ignore:
Timestamp:
Mar 8, 2012, 8:10:59 PM (13 years ago)
Author:
rick
Message:

Text based workers needs a better overview.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10058 r10060  
    592592  output = ""
    593593  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())
    596600  elif len(uri) == 1:
    597601    output += "Content-type:text/plain\r\n\r\n"
Note: See TracChangeset for help on using the changeset viewer.