From f9b85586ca7244ada8b66a4dab1fd324caccbe24 Mon Sep 17 00:00:00 2001 From: Adam Aposhian Date: Tue, 31 Aug 2021 15:02:04 -0600 Subject: [PATCH] fix(transport): remove disable_buffering option Signed-off-by: Adam Aposhian --- docker/transport/unixconn.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docker/transport/unixconn.py b/docker/transport/unixconn.py index adb6f18a1..1b00762a6 100644 --- a/docker/transport/unixconn.py +++ b/docker/transport/unixconn.py @@ -23,7 +23,6 @@ def __init__(self, base_url, unix_socket, timeout=60): self.base_url = base_url self.unix_socket = unix_socket self.timeout = timeout - self.disable_buffering = False def connect(self): sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) @@ -33,13 +32,8 @@ def connect(self): def putheader(self, header, *values): super().putheader(header, *values) - if header == 'Connection' and 'Upgrade' in values: - self.disable_buffering = True def response_class(self, sock, *args, **kwargs): - if self.disable_buffering: - kwargs['disable_buffering'] = True - return httplib.HTTPResponse(sock, *args, **kwargs)