mirror of https://github.com/n1nj4sec/pupy.git
Fix httpwrap data submission order
This commit is contained in:
parent
0868a4ddc6
commit
9b9633e255
|
@ -169,7 +169,6 @@ class PupyHTTPWrapperServer(BasePupyTransport):
|
|||
len(self.downstream_buffer), self.downstream.on_write_f))
|
||||
|
||||
self.downstream_buffer.write_to(self.downstream)
|
||||
self.downstream_buffer = None
|
||||
|
||||
if __debug__:
|
||||
logger.debug('Release transport')
|
||||
|
@ -192,6 +191,9 @@ class PupyHTTPWrapperServer(BasePupyTransport):
|
|||
logger.debug('Non-HTTP: Direct pass (handler={})'.format(
|
||||
self.downstream.on_write_f))
|
||||
|
||||
if self.downstream_buffer:
|
||||
self.downstream_buffer.write_to(self.downstream)
|
||||
|
||||
data.write_to(self.downstream)
|
||||
else:
|
||||
if __debug__:
|
||||
|
|
Loading…
Reference in New Issue