Add 'html' option, usefull to see error on server

This commit is contained in:
pictuga 2013-09-25 11:13:33 +02:00
parent 03014a8cbf
commit e73cbf56c2

View File

@ -445,7 +445,9 @@ if __name__ == '__main__':
print 'Status: 200'
print 'ETag: "%s"' % int(time.time())
if 'debug' in options:
if 'html' in options:
print 'Content-Type: text/html'
elif 'debug' in options:
print 'Content-Type: text/plain'
elif 'progress' in options:
print 'Content-Type: application/octet-stream'