equal
deleted
inserted
replaced
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 |