Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1832

Show
Ignore:
Timestamp:
11/20/07 14:11:19
Author:
fumanchu
Message:

Docstrings and a test tweak.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cperror.py

    r1750 r1832  
    179179            # A server sending a response with status code 416 (Requested 
    180180            # range not satisfiable) SHOULD include a Content-Range field 
    181             # with a byte-range- resp-spec of "*". The instance-length 
     181            # with a byte-range-resp-spec of "*". The instance-length 
    182182            # specifies the current length of the selected resource. 
    183183            # A response with status code 206 (Partial Content) MUST NOT 
  • trunk/cherrypy/_cprequest.py

    r1811 r1832  
    802802     
    803803    def collapse_body(self): 
    804         """Iterate over self.body, replacing it with and returning the result.""" 
     804        """Collapse self.body to a single string; replace it and return it.""" 
    805805        newbody = ''.join([chunk for chunk in self.body]) 
    806806        self.body = newbody 
  • trunk/cherrypy/test/test_encoding.py

    r1796 r1832  
    7676        # Ask for utf-16. 
    7777        self.getPage('/mao_zedong', [('Accept-Charset', 'utf-16')]) 
     78        self.assertHeader('Content-Type', 'text/html;charset=utf-16') 
    7879        self.assertBody(sing16) 
    7980         

Hosted by WebFaction

Log in as guest/cpguest to create tickets