Skip to content

Commit

Permalink
Consolidate media type usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Dec 3, 2024
1 parent bb754ae commit 5943a24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using AngleSharp.Io;
using Lombiq.HelpfulExtensions.Extensions.OrchardRecipeMigration.Services;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
Expand All @@ -8,6 +7,7 @@
using OrchardCore.Modules;
using System;
using System.IO;
using System.Net.Mime;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
Expand Down Expand Up @@ -58,6 +58,6 @@ public async Task<IActionResult> Convert(IFormFile file)
}

Response.Headers.Append("Content-Disposition", "attachment;filename=export.recipe.json");
return Content(json, MimeTypeNames.ApplicationJson, Encoding.UTF8);
return Content(json, MediaTypeNames.Application.Json, Encoding.UTF8);
}
}

0 comments on commit 5943a24

Please sign in to comment.