imagine going plaintext in the middle of a tls reply

This commit is contained in:
ed 2021-02-11 22:50:59 +00:00
parent 94521cdc1a
commit b6dba8beee

View file

@ -937,8 +937,11 @@ class HttpCli(object):
open_func = open open_func = open
# 512 kB is optimal for huge files, use 64k # 512 kB is optimal for huge files, use 64k
open_args = [fsenc(fs_path), "rb", 64 * 1024] open_args = [fsenc(fs_path), "rb", 64 * 1024]
if hasattr(os, "sendfile"): use_sendfile = (
use_sendfile = not self.args.no_sendfile not self.ssl_suf
and not self.args.no_sendfile
and hasattr(os, "sendfile")
)
# #
# send reply # send reply