Skip to content

Commit

Permalink
possible fix 🙏🙏🙏
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloose committed Nov 29, 2024
1 parent 1575698 commit c9fc840
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stiller-backend/internal/handlers/get_template.info.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func GetTemplateInfo(w http.ResponseWriter, r *http.Request, params httprouter.P
metatemplate_field := params.ByName("field")
switch metatemplate_field {
case "data", "scene", "thumbnail", "topview":
w.Header().Set("Content-Type", ContentTypes[metatemplate_field])
templates.WriteTemplateSubfile(w, metatemplate_field, template_id)
// if fieldnamae is topview add header image/svg+xml
w.Header().Set("Content-Type", ContentTypes[metatemplate_field])
Expand All @@ -41,6 +42,7 @@ func GetTemplateInfo(w http.ResponseWriter, r *http.Request, params httprouter.P
loggers.RequestLog(nil, "not a valid field", http.StatusNotFound, &w)
return
}
w.Header().Set("Content-Type", ContentTypes[metatemplate_field])
}


0 comments on commit c9fc840

Please sign in to comment.