Skip to content

Commit

Permalink
Fix cookie setting (#379)
Browse files Browse the repository at this point in the history
* fix cookie setting

Signed-off-by: Ben Cassell <ben.cassell@databricks.com>

* Removing cookie code

Signed-off-by: Ben Cassell <ben.cassell@databricks.com>

---------

Signed-off-by: Ben Cassell <ben.cassell@databricks.com>
  • Loading branch information
benc-db authored Mar 27, 2024
1 parent 64c71fb commit 7fade51
Show file tree
Hide file tree
Showing 2 changed files with 424 additions and 264 deletions.
4 changes: 0 additions & 4 deletions src/databricks/sql/auth/thrift_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,6 @@ def flush(self):
self.message = self.__resp.reason
self.headers = self.__resp.headers

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

@staticmethod
def basic_proxy_auth_header(proxy):
if proxy is None or not proxy.username:
Expand Down
Loading

0 comments on commit 7fade51

Please sign in to comment.