mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-18 14:54:24 +01:00
fix content-type for profile page: it's html.
This commit is contained in:
@@ -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{
|
||||||
|
|||||||
Reference in New Issue
Block a user