File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -238,6 +238,9 @@ def _create_session(self) -> Session:
238238 """Create a request session with provided catalog configuration."""
239239 session = Session ()
240240
241+ # Set HTTP headers
242+ self ._config_headers (session )
243+
241244 # Sets the client side and server side SSL cert verification, if provided as properties.
242245 if ssl_config := self .properties .get (SSL ):
243246 if ssl_ca_bundle := ssl_config .get (CA_BUNDLE ):
@@ -265,9 +268,6 @@ def _create_session(self) -> Session:
265268 else :
266269 session .auth = AuthManagerAdapter (self ._create_legacy_oauth2_auth_manager (session ))
267270
268- # Set HTTP headers
269- self ._config_headers (session )
270-
271271 # Configure SigV4 Request Signing
272272 if property_as_bool (self .properties , SIGV4 , False ):
273273 self ._init_sigv4 (session )
You can’t perform that action at this time.
0 commit comments