Accept txt as synonymous for text

master
Stephane Bortzmeyer 11 years ago
parent 2ac75cbae7
commit fb702317b3

@ -125,7 +125,8 @@ Disallow: /
if not path.startswith('/'):
raise Exception("Internal error: no / at the beginning of %s" % path)
plaintype = 'text/plain; charset=%s' % self.encoding
if format == "TEXT":
if format == "TEXT" or format == "TXT":
format = "TEXT"
mtype = 'text/plain; charset=%s' % self.encoding
elif format == "HTML":
mtype = 'text/html; charset=%s' % self.encoding

@ -6,7 +6,7 @@ use_setuptools()
from setuptools import setup
setup(name='DNS-LG',
version='2012062402',
version='2012062501',
description='DNS Looking Glass',
license='BSD',
author='Stephane Bortzmeyer',

Loading…
Cancel
Save