Skip to content

Commit b799106

Browse files
author
Ian Zink
committed
Allow Content-Length to be omitted when pushing on patch requests
Technically due to the way the specification is written today the moby/docker cli push is nonconformant. Given that is one of the most common ways users are pushing today, the specification should recognize that it is allowed. Further, requiring `Content-Length` to be set means that no client that is conforming can use http chunked encoding, which limits the use of CDNs like CloudFlare and other reverse proxies. See further discussion at: containerd/containerd#7459 Signed-off-by: Ian Zink <[email protected]>
1 parent c3e48b9 commit b799106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ OCI-Chunk-Min-Length: <size>
328328
Please reference the above section for restrictions on the `<location>`.
329329

330330
---
331-
To upload a chunk, issue a `PATCH` request to a URL path in the following format, and with the following headers and body:
331+
To upload a chunk, issue a `PATCH` request to a URL path in the following format, and with the following headers and body. `Content-Length` can be omitted if HTTP chunked transfer encoding is used:
332332

333333
URL path: `<location>` <sup>[end-5](#endpoints)</sup>
334334
```

0 commit comments

Comments
 (0)