We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e97d81 commit dd3da5bCopy full SHA for dd3da5b
server/imageproxyserver.go
@@ -22,6 +22,7 @@ const (
22
imageKey = "imageName"
23
layerDigestKey = "layerDigest"
24
versionKey = "version"
25
+ MediaTypeUKI = "application/vnd.ironcore.image.uki"
26
)
27
28
type TokenResponse struct {
@@ -207,7 +208,7 @@ func modifyProxyResponse(bearerToken string) func(*http.Response) error {
207
208
}
209
210
// Rewrite media type if it's a UKI
- if ct := resp.Header.Get("Content-Type"); ct == "application/vnd.ironcore.image.uki" {
211
+ if ct := resp.Header.Get("Content-Type"); ct == MediaTypeUKI {
212
resp.Header.Set("Content-Type", "application/efi")
213
214
0 commit comments