From e73cbf56c26e0f8a0a336fe42b69ff1753191565 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 25 Sep 2013 11:13:33 +0200 Subject: [PATCH] Add 'html' option, usefull to see error on server --- morss.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 3af3c3d..1ae136b 100644 --- a/morss.py +++ b/morss.py @@ -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'