Skip to content

Commit

Permalink
Set content type on app config handler
Browse files Browse the repository at this point in the history
  • Loading branch information
bryk committed Nov 29, 2016
1 parent f29313b commit 4be1ed7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/backend/handler/confighandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func getAppConfigJSON() string {

func ConfigHandler(w http.ResponseWriter, r *http.Request) (int, error) {
template, err := template.New(ConfigTemplateName).Parse(ConfigTemplate)
w.Header().Set("Content-Type", "application/javascript")
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return http.StatusInternalServerError, err
Expand Down

0 comments on commit 4be1ed7

Please sign in to comment.