mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-06 14:50:11 +00:00
fix: use xmlResponse
This commit is contained in:
parent
b798f4ce86
commit
7f76df0b24
2 changed files with 1 additions and 12 deletions
|
@ -412,7 +412,7 @@ func DownloadPackageFile(ctx *context.Context) {
|
|||
Metadata: pd.Metadata.(*nuget_module.Metadata),
|
||||
}
|
||||
|
||||
ctx.XML(http.StatusOK, nuget_module.GenerateNuspec(pkg))
|
||||
xmlResponse(ctx, http.StatusOK, nuget_module.GenerateNuspec(pkg))
|
||||
} else {
|
||||
s, u, pf, err := packages_service.GetFileStreamByPackageNameAndVersion(
|
||||
ctx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue