Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ContentType isn't applied in MediaType (#694) #704

Merged
merged 1 commit into from
Aug 12, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion goagen/gen_app/writers.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ func New{{ .Name }}(ctx context.Context, service *goa.Service) (*{{ .Name }}, er
// template input: map[string]interface{}
ctxMTRespT = `// {{ goify .RespName true }} sends a HTTP response with status code {{ .Response.Status }}.
func (ctx *{{ .Context.Name }}) {{ goify .RespName true }}(r {{ gotyperef .Projected .Projected.AllRequired 0 false }}) error {
ctx.ResponseData.Header().Set("Content-Type", "{{ .Response.MediaType }}")
ctx.ResponseData.Header().Set("Content-Type", "{{ .ContentType }}")
return ctx.ResponseData.Service.Send(ctx.Context, {{ .Response.Status }}, r)
}
`
Expand Down