fix http_post & http_simple redirect
This commit is contained in:
parent
6db1445d2a
commit
8e73f50ff5
1 changed files with 2 additions and 6 deletions
|
@ -175,9 +175,7 @@ class http_simple(plain.plain):
|
|||
if len(ret_buf) >= 7:
|
||||
self.has_recv_header = True
|
||||
return (ret_buf, True, False)
|
||||
if len(ret_buf) == 0:
|
||||
return self.not_match_return(buf)
|
||||
return (b'', True, False)
|
||||
else:
|
||||
return (b'', True, False)
|
||||
|
||||
|
@ -244,9 +242,7 @@ class http_post(http_simple):
|
|||
if len(ret_buf) >= 7:
|
||||
self.has_recv_header = True
|
||||
return (ret_buf, True, False)
|
||||
if len(ret_buf) == 0:
|
||||
return self.not_match_return(buf)
|
||||
return (b'', True, False)
|
||||
else:
|
||||
return (b'', True, False)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue