diff --git a/cmd/handler-utils.go b/cmd/handler-utils.go index 2074b3ac8..5ad63040f 100644 --- a/cmd/handler-utils.go +++ b/cmd/handler-utils.go @@ -134,6 +134,11 @@ func extractMetadata(ctx context.Context, r *http.Request) (metadata map[string] return nil, err } + // Set content-type to default value if it is not set. + if _, ok := metadata["content-type"]; !ok { + metadata["content-type"] = "application/octet-stream" + } + // Success. return metadata, nil }