Changeset 1832
- Timestamp:
- 11/20/07 14:11:19
- Files:
-
- trunk/cherrypy/_cperror.py (modified) (1 diff)
- trunk/cherrypy/_cprequest.py (modified) (1 diff)
- trunk/cherrypy/test/test_encoding.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cperror.py
r1750 r1832 179 179 # A server sending a response with status code 416 (Requested 180 180 # range not satisfiable) SHOULD include a Content-Range field 181 # with a byte-range- resp-spec of "*". The instance-length181 # with a byte-range-resp-spec of "*". The instance-length 182 182 # specifies the current length of the selected resource. 183 183 # A response with status code 206 (Partial Content) MUST NOT trunk/cherrypy/_cprequest.py
r1811 r1832 802 802 803 803 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.""" 805 805 newbody = ''.join([chunk for chunk in self.body]) 806 806 self.body = newbody trunk/cherrypy/test/test_encoding.py
r1796 r1832 76 76 # Ask for utf-16. 77 77 self.getPage('/mao_zedong', [('Accept-Charset', 'utf-16')]) 78 self.assertHeader('Content-Type', 'text/html;charset=utf-16') 78 79 self.assertBody(sing16) 79 80

