kopia lustrzana https://github.com/cirospaciari/socketify.py
fix formatting
rodzic
5251e8fa5d
commit
91f3855141
|
@ -1667,10 +1667,10 @@ class AppResponse:
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def redirect(self, location, status_code=302, end_connection=True):
|
def redirect(self, location, status_code=302, end_connection=True):
|
||||||
self.write_status(status_code)
|
self.write_status(status_code)
|
||||||
self.write_header("Location", location)
|
self.write_header("Location", location)
|
||||||
self.end_without_body(end_connection) # warning changing default to True, otherwise redirect hangs for 8-9 seconds
|
self.end_without_body(end_connection) # warning changing default to True, otherwise redirect hangs for 8-9 seconds
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def write_offset(self, offset):
|
def write_offset(self, offset):
|
||||||
lib.uws_res_override_write_offset(
|
lib.uws_res_override_write_offset(
|
||||||
|
|
Ładowanie…
Reference in New Issue