Hi all. Is there a way to specify a header that wi...
# singer-tap-development
a
Hi all. Is there a way to specify a header that will be sent to all requests? I have to send headers['ClientId'] along with all requests in
client.py
I overridden the http_headers function
Copy code
@property
    def http_headers(self) -> dict:
        """Return the http headers needed."""
        headers = {}
        if "user_agent" in self.config:
            headers["User-Agent"] = self.config.get("user_agent")
        if "client_id" in self.config:
            headers["ClientId"] = self.config.get("client_id")
        # If not using an authenticator, you may also provide inline auth headers:
        # headers["Private-Token"] = self.config.get("auth_token")
        return headers
I expected that on a request to get a token using the OAuthAuthenticator class, headers["ClientId"] would be automatically added to the request, but now this does not happen