def set_header(self, header_key, header_value):
        """Set the value of the defined header key.

        Args:
            key (str): The name of the header key to set.
            value (str): The value associated to the header key to set.

        Returns:
            profile (object): The object to pass as argument to the webdriver.
        """
        if self.driver_name == 'Firefox':
            # See more Options here :
            # https://github.com/SeleniumHQ/selenium/blob/master/javascript/firefox-driver/webdriver.json
            header_key = header_key.lower().replace('-', '')
            self.profile.set_preference('general.%s.override' % header_key, header_value)
        elif self.driver_name == 'PhantomJS':
            # See more Options here :
            # https://github.com/ariya/phantomjs/wiki/API-Reference-WebPage
            self.profile["phantomjs.page.customHeaders.%s" % header_key] = (
                header_value
            )
        else:
            raise HeaderException('Webdriver not supported for now.')

        return self.profile
dataset/ETHPy150Open thylong/cabu/cabu/utils/headers.py/Headers.set_header/original