fix: error content type

This commit is contained in:
Daniel G. Taylor 2021-04-16 15:19:22 +02:00
parent 7f6dfe1838
commit 1de349097a
No known key found for this signature in database
GPG key ID: 8D100732CA686E06

View file

@ -14,7 +14,7 @@ var response func(int) huma.Response = newResponse
func errorResponse(status int) huma.Response {
return response(status).
ContentType("application/json").
ContentType("application/problem+json").
Model(&huma.ErrorModel{})
}