From 8146b680c6e59e909c23bf62f06853e1e29042f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=AF=E5=A4=A7=E4=BE=A0?= Date: Tue, 1 Jul 2025 01:29:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DAutoCloseResponse?= =?UTF-8?q?=E7=B1=BB=E5=9C=A8=E5=8F=8D=E5=BA=8F=E5=88=97=E5=8C=96=E6=97=B6?= =?UTF-8?q?=E6=97=A0=E9=99=90=E9=80=92=E5=BD=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/http.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/utils/http.py b/app/utils/http.py index e7b047d5..c647046e 100644 --- a/app/utils/http.py +++ b/app/utils/http.py @@ -76,6 +76,9 @@ class AutoCloseResponse: """ self._auto_close() + def __setstate__(self, state): + for name, value in state.items(): + setattr(self, name, value) class RequestUtils: