1. cherrypy
  2. CherryPy


Robert Brewer  committed 4811c4e

Docstrings and a test tweak.

  • Participants
  • Parent commits 6e213eb
  • Branches default

Comments (0)

Files changed (3)

File cherrypy/_cperror.py

View file
  • Ignore whitespace
         if self.status != 416:
             # A server sending a response with status code 416 (Requested
             # range not satisfiable) SHOULD include a Content-Range field
-            # with a byte-range- resp-spec of "*". The instance-length
+            # with a byte-range-resp-spec of "*". The instance-length
             # specifies the current length of the selected resource.
             # A response with status code 206 (Partial Content) MUST NOT
             # include a Content-Range field with a byte-range- resp-spec of "*".

File cherrypy/_cprequest.py

View file
  • Ignore whitespace
         self.cookie = Cookie.SimpleCookie()
     def collapse_body(self):
-        """Iterate over self.body, replacing it with and returning the result."""
+        """Collapse self.body to a single string; replace it and return it."""
         newbody = ''.join([chunk for chunk in self.body])
         self.body = newbody
         return newbody

File cherrypy/test/test_encoding.py

View file
  • Ignore whitespace
         # Ask for utf-16.
         self.getPage('/mao_zedong', [('Accept-Charset', 'utf-16')])
+        self.assertHeader('Content-Type', 'text/html;charset=utf-16')
         # Ask for multiple encodings. ISO-8859-1 should fail, and utf-16