{"record":{"id":"a0a40eed00d95a3c","repo":"sqlmapproject/sqlmap","slug":"invalid-regular-field-name","errorCode":null,"errorMessage":"invalid regular field name","messagePattern":"invalid regular field name","errorType":"exception","errorClass":"H2ProtocolError","httpStatus":null,"severity":"error","filePath":"lib/request/http2.py","lineNumber":677,"sourceCode":"        context.options |= no_compression\n    setter = getattr(context, \"set_alpn_protocols\", None)\n    if setter is None:\n        raise H2Error(\"this Python/OpenSSL build does not support ALPN\")\n    setter([\"h2\"])\n    return context\n\n\ndef _iter_header_items(headers):\n    if headers is None:\n        return []\n    if hasattr(headers, \"items\"):\n        return list(headers.items())\n    return list(headers)\n\n\ndef _validate_regular_name(name):\n    if not name or name.startswith(b\":\"):\n        raise H2ProtocolError(\"invalid regular field name\")\n    for item in bytearray(name):\n        if item not in _TOKEN_BYTES:\n            raise H2ProtocolError(\"invalid HTTP field name %r\" % name)\n\n\ndef _validate_field_value(value):\n    if b\"\\x00\" in value or b\"\\r\" in value or b\"\\n\" in value:\n        raise H2ProtocolError(\"invalid control character in HTTP field value\")\n    if value[:1] in (b\" \", b\"\\t\") or value[-1:] in (b\" \", b\"\\t\"):\n        raise H2ProtocolError(\"HTTP/2 field values may not have leading/trailing whitespace\")\n\n\ndef _validate_pseudo_value(name, value):\n    _validate_field_value(value)\n    for item in bytearray(value):\n        if item < 0x21 or item > 0x7e:\n            raise H2ProtocolError(\"invalid octet in %s pseudo-field\" % name)\n","sourceCodeStart":659,"sourceCodeEnd":695,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/http2.py#L659-L695","documentation":"Error \"invalid regular field name\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/request/http2.py:677 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}