From 91f38551411fffc587fe66394a15fe8942d0bcc0 Mon Sep 17 00:00:00 2001 From: Anthony Leung Date: Fri, 5 Jul 2024 10:56:45 +0000 Subject: [PATCH] fix formatting --- src/socketify/socketify.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/socketify/socketify.py b/src/socketify/socketify.py index a951c5c..cf8eaf1 100644 --- a/src/socketify/socketify.py +++ b/src/socketify/socketify.py @@ -1667,10 +1667,10 @@ class AppResponse: return self def redirect(self, location, status_code=302, end_connection=True): - self.write_status(status_code) - self.write_header("Location", location) - self.end_without_body(end_connection) # warning changing default to True, otherwise redirect hangs for 8-9 seconds - return self + self.write_status(status_code) + self.write_header("Location", location) + self.end_without_body(end_connection) # warning changing default to True, otherwise redirect hangs for 8-9 seconds + return self def write_offset(self, offset): lib.uws_res_override_write_offset(