mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Don't write empty values.
This commit is contained in:
parent
721e2c8277
commit
4fdc2179e2
@ -63,10 +63,11 @@ class FileLike:
|
||||
return result
|
||||
|
||||
def write(self, v):
|
||||
try:
|
||||
return self.o.sendall(v)
|
||||
except SSL.SysCallError:
|
||||
raise NetLibDisconnect()
|
||||
if v:
|
||||
try:
|
||||
return self.o.sendall(v)
|
||||
except SSL.SysCallError:
|
||||
raise NetLibDisconnect()
|
||||
|
||||
def readline(self, size = None):
|
||||
result = ''
|
||||
|
Loading…
Reference in New Issue
Block a user