Documents can now specify a content-type
This commit is contained in:
@@ -81,6 +81,10 @@ func (this *handler) serveFile (res http.ResponseWriter, req *http.Request, file
|
||||
this.serveError(res, req, http.StatusInternalServerError, err)
|
||||
return
|
||||
}
|
||||
if document.ContentType != "" {
|
||||
log.Println(document.ContentType)
|
||||
res.Header().Set("Content-Type", document.ContentType)
|
||||
}
|
||||
err = document.Execute(res, step.ExecutionData {
|
||||
Data: req,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user