Add 'html' option, usefull to see error on server
parent
03014a8cbf
commit
e73cbf56c2
4
morss.py
4
morss.py
|
@ -445,7 +445,9 @@ if __name__ == '__main__':
|
||||||
print 'Status: 200'
|
print 'Status: 200'
|
||||||
print 'ETag: "%s"' % int(time.time())
|
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'
|
print 'Content-Type: text/plain'
|
||||||
elif 'progress' in options:
|
elif 'progress' in options:
|
||||||
print 'Content-Type: application/octet-stream'
|
print 'Content-Type: application/octet-stream'
|
||||||
|
|
Loading…
Reference in New Issue