Skip to content

Commit a88c17e

Browse files
kempspowendigo
authored andcommitted
add SESSION_AUTHORIZATION to client capabilities
1 parent 6db939b commit a88c17e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trino/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def http_headers(self) -> CaseInsensitiveDict[str]:
522522
headers[constants.HEADER_ENCODING] = self._client_session.encoding
523523
else:
524524
raise ValueError("Invalid type for encoding: expected str or list")
525-
headers[constants.HEADER_CLIENT_CAPABILITIES] = 'PARAMETRIC_DATETIME'
525+
headers[constants.HEADER_CLIENT_CAPABILITIES] = 'PARAMETRIC_DATETIME,SESSION_AUTHORIZATION'
526526
headers["user-agent"] = f"{constants.CLIENT_NAME}/{__version__}"
527527
if len(self._client_session.roles.values()):
528528
headers[constants.HEADER_ROLE] = ",".join(

0 commit comments

Comments
 (0)