|
|
@ -140,9 +140,7 @@ func serveMavenMetadata(ctx *context.Context, params parameters) { |
|
|
|
ctx.Resp.Header().Set("Content-Length", strconv.Itoa(len(xmlMetadataWithHeader))) |
|
|
|
ctx.Resp.Header().Set("Content-Length", strconv.Itoa(len(xmlMetadataWithHeader))) |
|
|
|
ctx.Resp.Header().Set("Content-Type", contentTypeXML) |
|
|
|
ctx.Resp.Header().Set("Content-Type", contentTypeXML) |
|
|
|
|
|
|
|
|
|
|
|
if _, err := ctx.Resp.Write(xmlMetadataWithHeader); err != nil { |
|
|
|
_, _ = ctx.Resp.Write(xmlMetadataWithHeader) |
|
|
|
log.Error("write bytes failed: %v", err) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func servePackageFile(ctx *context.Context, params parameters, serveContent bool) { |
|
|
|
func servePackageFile(ctx *context.Context, params parameters, serveContent bool) { |
|
|
|