# http: ContentLength=0 with Body length 0

- **ID:** `go/http-missing-content-length`
- **Domain:** go
- **Category:** protocol_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The server expects a non-zero ContentLength but the request body is empty, causing a protocol violation.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.20 | active | — | — |

## Workarounds

1. **** (85% success)
   ```
   Ensure the request body is non-empty or set ContentLength to -1 for chunked encoding.
   ```

## Dead Ends

- **** — This can cause the server to read beyond the body and fail. (50% fail)
- **** — This changes the semantics of the request. (60% fail)
