From d893c3039436f7c8be64a8232324c8470cf84eb1 Mon Sep 17 00:00:00 2001
From: Sakuya
Date: Tue, 16 Mar 2021 13:31:49 +0800
Subject: [PATCH] Is this okay
---
tornado/http1connection.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tornado/http1connection.py b/tornado/http1connection.py
index 6ebbd7f9d..72088d602 100644
--- a/tornado/http1connection.py
+++ b/tornado/http1connection.py
@@ -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
--
2.47.2