##// END OF EJS Templates
configitems: register the 'web.guessmime' config
Boris Feld -
r34609:f12de15c default
parent child Browse files
Show More
@@ -736,6 +736,9 b" coreconfigitem('web', 'contact',"
736 coreconfigitem('web', 'deny_push',
736 coreconfigitem('web', 'deny_push',
737 default=list,
737 default=list,
738 )
738 )
739 coreconfigitem('web', 'guessmime',
740 default=False,
741 )
739 coreconfigitem('web', 'accesslog',
742 coreconfigitem('web', 'accesslog',
740 default='-',
743 default='-',
741 )
744 )
@@ -93,7 +93,7 b' def log(web, req, tmpl):'
93
93
94 @webcommand('rawfile')
94 @webcommand('rawfile')
95 def rawfile(web, req, tmpl):
95 def rawfile(web, req, tmpl):
96 guessmime = web.configbool('web', 'guessmime', False)
96 guessmime = web.configbool('web', 'guessmime')
97
97
98 path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0])
98 path = webutil.cleanpath(web.repo, req.form.get('file', [''])[0])
99 if not path:
99 if not path:
General Comments 0
You need to be logged in to leave comments. Login now