equal
deleted
inserted
replaced
609 DeprecationWarning, stacklevel=2) |
609 DeprecationWarning, stacklevel=2) |
610 name = bwcompat |
610 name = bwcompat |
611 self.set_cookie(name, '', maxage=0, expires=date(2000, 1, 1)) |
611 self.set_cookie(name, '', maxage=0, expires=date(2000, 1, 1)) |
612 |
612 |
613 def set_content_type(self, content_type, filename=None, encoding=None, |
613 def set_content_type(self, content_type, filename=None, encoding=None, |
614 disposition='attachment'): |
614 disposition='inline'): |
615 """set output content type for this request. An optional filename |
615 """set output content type for this request. An optional filename |
616 may be given. |
616 may be given. |
617 |
617 |
618 The disposition argument may be `attachement` or `inline` as specified |
618 The disposition argument may be `attachement` or `inline` as specified |
619 for the Content-disposition HTTP header. The disposition parameter have |
619 for the Content-disposition HTTP header. The disposition parameter have |