Add "txt" argument, to change HTTP Content-Type
parent
336d98230f
commit
8916216403
2
morss.py
2
morss.py
|
@ -656,7 +656,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
if options.html:
|
if options.html:
|
||||||
print 'Content-Type: text/html'
|
print 'Content-Type: text/html'
|
||||||
elif options.debug:
|
elif options.debug or options.txt:
|
||||||
print 'Content-Type: text/plain'
|
print 'Content-Type: text/plain'
|
||||||
elif options.progress:
|
elif options.progress:
|
||||||
print 'Content-Type: application/octet-stream'
|
print 'Content-Type: application/octet-stream'
|
||||||
|
|
Loading…
Reference in New Issue