mirror of
https://github.com/Fishwaldo/huma.git
synced 2025-03-15 19:31:27 +00:00
fix: error content type
This commit is contained in:
parent
7f6dfe1838
commit
1de349097a
1 changed files with 1 additions and 1 deletions
|
@ -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{})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue