comparison mercurial/hgweb/request.py @ 5927:b06c56f8fab7

hgweb: revert to showing file instead of offering for download
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Tue, 22 Jan 2008 10:45:52 +0100
parents 15ef6b9c1f2f
children c301f15c965a
comparison
equal deleted inserted replaced
5926:15ef6b9c1f2f 5927:b06c56f8fab7
85 85
86 def httphdr(self, type, filename=None, length=0, headers={}): 86 def httphdr(self, type, filename=None, length=0, headers={}):
87 headers = headers.items() 87 headers = headers.items()
88 headers.append(('Content-type', type)) 88 headers.append(('Content-type', type))
89 if filename: 89 if filename:
90 headers.append(('Content-disposition', 'attachment; filename=%s' % 90 headers.append(('Content-disposition', 'inline; filename=%s' %
91 filename)) 91 filename))
92 if length: 92 if length:
93 headers.append(('Content-length', str(length))) 93 headers.append(('Content-length', str(length)))
94 self.header(headers) 94 self.header(headers)
95 95