Skip to content

Commit

Permalink
fix #855: get the correct default description of a http code
Browse files Browse the repository at this point in the history
  • Loading branch information
sdghchj committed Dec 9, 2020
1 parent 63d939d commit 7f6ef33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ func (operation *Operation) ParseEmptyResponseOnly(commentLine string) error {
_ = operation.DefaultResponse()
} else if code, err := strconv.Atoi(codeStr); err == nil {
var response spec.Response
response.Description = http.StatusText(code)
//response.Description = http.StatusText(code)
operation.AddResponse(code, &response)
} else {
return fmt.Errorf("can not parse response comment \"%s\"", commentLine)
Expand Down

0 comments on commit 7f6ef33

Please sign in to comment.