1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

but set text/plain in debug mode

This commit is contained in:
Seth Schoen
2012-05-28 11:09:19 -07:00
parent c607c0adbf
commit 218423f909

View File

@@ -31,8 +31,11 @@ class index:
else:
if m.chocolateversion != 1:
r.failure.cause = r.UnsupportedVersion
if m.debug: return "SAW MESSAGE: %s\n" % str(r)
else: return r.SerializeToString()
if m.debug:
web.header("Content-type", "text/plain")
return "SAW MESSAGE: %s\n" % str(r)
else:
return r.SerializeToString()
if __name__ == "__main__":
app = web.application(urls, globals())