equal
deleted
inserted
replaced
83 def httphdr(self, type=None, filename=None, length=0, headers={}): |
83 def httphdr(self, type=None, filename=None, length=0, headers={}): |
84 headers = headers.items() |
84 headers = headers.items() |
85 if type is not None: |
85 if type is not None: |
86 headers.append(('Content-Type', type)) |
86 headers.append(('Content-Type', type)) |
87 if filename: |
87 if filename: |
88 headers.append(('Content-Disposition', 'inline; filename=%s' % |
88 headers.append(('Content-Disposition', |
89 filename)) |
89 'inline; filename=%s' % filename.split('/')[-1])) |
90 if length: |
90 if length: |
91 headers.append(('Content-Length', str(length))) |
91 headers.append(('Content-Length', str(length))) |
92 self.header(headers) |
92 self.header(headers) |
93 |
93 |
94 def wsgiapplication(app_maker): |
94 def wsgiapplication(app_maker): |