Skip to content

Commit

Permalink
Fix syntax error in http handler
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Whitehouse <[email protected]>
  • Loading branch information
Jesse Whitehouse committed Oct 19, 2023
1 parent 62d11e4 commit aa0ab77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/databricks/sql/auth/thrift_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def startRetryTimer(self):
self.retry_policy and self.retry_policy.start_retry_timer()

def open(self):

# self.__pool replaces the self.__http used by the original THttpClient
if self.scheme == "http":
pool_class = HTTPConnectionPool
Expand Down Expand Up @@ -143,7 +142,6 @@ def isOpen(self):
return self.__resp is not None

def flush(self):

# Pull data out of buffer that will be sent in this request
data = self.__wbuf.getvalue()
self.__wbuf = BytesIO()
Expand Down Expand Up @@ -191,7 +189,7 @@ def flush(self):

# Saves the cookie sent by the server response
if "Set-Cookie" in self.headers:
self.setCustomHeaders(dict("Cookie", self.headers["Set-Cookie"]))
self.setCustomHeaders({"Cookie", self.headers["Set-Cookie"]})

@staticmethod
def basic_proxy_auth_header(proxy):
Expand Down

0 comments on commit aa0ab77

Please sign in to comment.