fix content-type for profile page: it's html.

This commit is contained in:
fiatjaf
2023-11-16 22:23:52 -03:00
parent e4c61edde5
commit a1a84c4b81

View File

@@ -58,7 +58,7 @@ func renderProfile(w http.ResponseWriter, r *http.Request, code string) {
LastNotes: data.renderableLastNotes, LastNotes: data.renderableLastNotes,
}) })
} else { } else {
w.Header().Add("content-type", "text/xml") w.Header().Add("content-type", "text/html")
err = ProfileTemplate.Render(w, &ProfilePage{ err = ProfileTemplate.Render(w, &ProfilePage{
HeadCommonPartial: HeadCommonPartial{IsProfile: true, TailwindDebugStuff: tailwindDebugStuff}, HeadCommonPartial: HeadCommonPartial{IsProfile: true, TailwindDebugStuff: tailwindDebugStuff},
DetailsPartial: DetailsPartial{ DetailsPartial: DetailsPartial{