Skip to content

Commit 6386ae2

Browse files
committed
Add the OCI-Namespace header in the proxy response
Signed-off-by: Brandon Mitchell <[email protected]>
1 parent 68508bd commit 6386ae2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@ This host component in a repository name SHOULD be the registry host a client co
721721
This original host component used by the client is referred to as the source host in the API documentation.
722722
A proxy registry MAY use the `ns` query parameter to resolve an upstream registry host.
723723
A registry MAY choose to ignore the `ns` query parameter.
724+
A registry that uses the `ns` query parameter to scope the request SHOULD return the `ns` query parameter value in the `OCI-Namespace` header.
724725

725726
A client SHOULD be aware of whether a registry host is being used is a proxy, such as when the `ns` query parameter differs from the `Host` header.
726727
A client SHOULD avoid sending `ns` query parameters to non-proxy registries.

0 commit comments

Comments
 (0)