{
  "id": "go/http-missing-content-length",
  "signature": "http: ContentLength=0 with Body length 0",
  "signature_zh": "http: ContentLength=0 且 Body 长度为 0",
  "regex": "http:\\ ContentLength=0\\ with\\ Body\\ length\\ 0",
  "domain": "go",
  "category": "protocol_error",
  "subcategory": null,
  "root_cause": "The server expects a non-zero ContentLength but the request body is empty, causing a protocol violation.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务器期望非零的 ContentLength，但请求体为空，导致协议违规。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This can cause the server to read beyond the body and fail.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This changes the semantics of the request.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Ensure the request body is non-empty or set ContentLength to -1 for chunked encoding.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.81,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-08-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}