]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Is this okay 3000/head
authorSakuya <dl@pbstu.com>
Tue, 16 Mar 2021 05:31:49 +0000 (13:31 +0800)
committerGitHub <noreply@github.com>
Tue, 16 Mar 2021 05:31:49 +0000 (13:31 +0800)
tornado/http1connection.py

index 6ebbd7f9d355116545a83a25be3ea8b7fd71d701..72088d6023b0b55232351248e72d5915667bfb9c 100644 (file)
@@ -131,8 +131,11 @@ class HTTP1Connection(httputil.HTTPConnection):
         self.no_keep_alive = params.no_keep_alive
         # The body limits can be altered by the delegate, so save them
         # here instead of just referencing self.params later.
-        self._max_body_size = self.params.max_body_size \
-            if self.params.max_body_size is not None else self.stream.max_buffer_size
+        self._max_body_size = (
+            self.params.max_body_size
+            if self.params.max_body_size is not None
+            else self.stream.max_buffer_size
+        )
         self._body_timeout = self.params.body_timeout
         # _write_finished is set to True when finish() has been called,
         # i.e. there will be no more data sent.  Data may still be in the