web/request.py
branchstable
changeset 8612 3bb96935a6b9
parent 8611 51068fe1e39a
child 8645 310040c668c0
child 8728 75be9de9d68e
equal deleted inserted replaced
8611:51068fe1e39a 8612:3bb96935a6b9
   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