+1
-1
src/manifest.go
+1
-1
src/manifest.go
···
148
148
} else if entry.GetType() == Type_InlineFile && entry.GetTransform() == Transform_None {
149
149
contentType := mime.TypeByExtension(filepath.Ext(path))
150
150
if contentType == "" {
151
-
contentType = http.DetectContentType(entry.Data[:512])
151
+
contentType = http.DetectContentType(entry.Data[:min(512, len(entry.Data))])
152
152
}
153
153
entry.ContentType = proto.String(contentType)
154
154
} else {