[~] Refactor

This commit is contained in:
Siarhei Siniak 2022-10-16 15:07:07 +03:00
parent 4ad2863bf5
commit 41eab88d8d

@ -114,7 +114,10 @@ class Application:
finally: finally:
p.terminate() p.terminate()
return t10 return dict(
headers_text=t9,
content=t10
)
def op7(self): def op7(self):
try: try:
@ -160,12 +163,10 @@ class Application:
'-q', '-q',
] ]
t10 = self.op6(t17) return self.op6(t17)
finally: finally:
self.op3() self.op3()
return t10
def run(self): def run(self):
try: try:
t4 = int(self.environ.get('CONTENT_LENGTH', '0')) t4 = int(self.environ.get('CONTENT_LENGTH', '0'))
@ -187,9 +188,15 @@ class Application:
protocol=self.environ['SERVER_PROTOCOL'], protocol=self.environ['SERVER_PROTOCOL'],
) )
o_8 = self.op8(
t3,
headers=t2,
uri=t7['uri'],
method=t7['method'],
)
return self.op5( return self.op5(
headers_text=t9, **o_8,
content=t10,
) )
except: except:
self.op1() self.op1()