mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
620bc7c517
reuqest url also contains query parameter due to this in some scenarios location header is setting up incorrectly, strip query parameter from request url to correctly setup location header. Closes #573 #575 Signed-off-by: Shivam Mishra <shimish2@cisco.com>
14 lines
528 B
Go
14 lines
528 B
Go
package constants
|
|
|
|
const (
|
|
ArtifactSpecRoutePrefix = "/oras/artifacts/v1"
|
|
RoutePrefix = "/v2"
|
|
Blobs = "blobs"
|
|
Uploads = "uploads"
|
|
DistAPIVersion = "Docker-Distribution-API-Version"
|
|
DistContentDigestKey = "Docker-Content-Digest"
|
|
BlobUploadUUID = "Blob-Upload-UUID"
|
|
DefaultMediaType = "application/json"
|
|
BinaryMediaType = "application/octet-stream"
|
|
DefaultMetricsExtensionRoute = "/metrics"
|
|
)
|