def replace_header(self, headers, payload):
        raw_headers = str(headers)
        if raw_headers in self.fsig:
            raw_headers = raw_headers.replace(self.fsig, payload)
            return HTTPHeaders(ast.literal_eval(raw_headers))
        template_sig = self.template_signature(raw_headers)
        if template_sig:
            tp = TemplateParser()
            tp.set_payload(payload)
            header_template = self.template_signature(raw_headers)
            new_payload = repr(
                tp.transform(header_template,
                             self.sig))[1:-1]  # removing extra " "
            raw_headers = raw_headers.replace(header_template, new_payload)
            new_headers = HTTPHeaders(ast.literal_eval(raw_headers))
            return new_headers
        return headers
dataset/ETHPy150Open owtf/owtf/framework/http/wafbypasser/core/placeholder_manager.py/PlaceholderManager.replace_header/swapped operands of `in`