We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3139b7e commit 78f6809Copy full SHA for 78f6809
ws4py/server/cherrypyserver.py
@@ -272,14 +272,14 @@ def _set_internal_flags(self):
272
break
273
_locals = current.f_locals
274
if 'self' in _locals:
275
- if isinstance(_locals['self'], HTTPRequest):
276
- _locals['self'].close_connection = True
277
- if isinstance(_locals['self'], HTTPConnection):
278
- _locals['self'].linger = True
279
- # HTTPConnection is more inner than
280
- # HTTPRequest so we can leave once
281
- # we're done here
282
- return
+ if isinstance(_locals['self'], HTTPRequest):
+ _locals['self'].close_connection = True
+ if isinstance(_locals['self'], HTTPConnection):
+ _locals['self'].linger = True
+ # HTTPConnection is more inner than
+ # HTTPRequest so we can leave once
+ # we're done here
+ return
283
_locals = None
284
current = current.f_back
285
0 commit comments