[~] Refactor
This commit is contained in:
parent
4ad2863bf5
commit
41eab88d8d
19
d1/f2.py
19
d1/f2.py
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user