Commits

Robert Brewer committed bab5d1e

Changed camelCase "streamResponse" to lowercase "stream_response".

  • Participants
  • Parent commits 3e6694f

Comments (0)

Files changed (6)

File cherrypy/_cphttptools.py

         
         self.status = "%s %s" % (code, reason)
         
-        stream = cherrypy.config.get("streamResponse", False)
+        stream = cherrypy.config.get("stream_response", False)
         # OPTIONS requests MUST include a Content-Length of 0 if no body.
         # Just punt and figure Content-Length for all OPTIONS requests.
         if cherrypy.request.method == "OPTIONS":

File cherrypy/filters/encodingfilter.py

     
     attempted_charsets = []
     
-    stream = conf("streamResponse", False)
+    stream = conf("stream_response", False)
     if stream:
         encode = encode_stream
     else:

File cherrypy/test/helper.py

                 self.body.append(chunk)
             request.close()
         except Exception, ex:
-            if cherrypy.config.get("streamResponse", False):
+            if cherrypy.config.get("stream_response", False):
                 try:
                     request.close()
                 except:

File cherrypy/test/test_core.py

         'server.log_tracebacks': True,
     },
     '/error/page_streamed': {
-        'streamResponse': True,
+        'stream_response': True,
     },
     '/error/cause_err_in_finalize': {
         'server.show_tracebacks': False,
             self.assertErrorPage(500, pattern=valerr)
             
             import cherrypy
-            # streamResponse should be True for this path.
+            # stream_response should be True for this path.
             if cherrypy.server.httpserver is None:
                 self.assertRaises(ValueError, self.getPage,
                                   "/error/page_streamed")

File cherrypy/test/test_custom_filters.py

         'server.show_tracebacks': False,
     },
     '/cpfilterlist/errinstream': {
-        'streamResponse': True,
+        'stream_response': True,
     },
     '/cpfilterlist/err_in_onstart': {
         # Because this isn't a dict, on_start_resource will error.

File cherrypy/test/test_gzip_filter.py

                'server.show_tracebacks': True,
                'gzip_filter.on': True,
                },
-    '/noshow_stream': {'streamResponse': True},
+    '/noshow_stream': {'stream_response': True},
 })