Skip to content

Commit 79bc0ab

Browse files
committed
Fix merge error
1 parent b1b4630 commit 79bc0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apisprout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func getExample(negotiator *ContentNegotiator, prefer map[string]string, op *ope
211211
if err != nil {
212212
// If we are using the default with prefer, we can use its status
213213
// code:
214-
status, err = strconv.Atoi(prefer)
214+
status, err = strconv.Atoi(prefer["status"])
215215
}
216216
if err != nil {
217217
// Otherwise, treat default and other named statuses as 200.

0 commit comments

Comments
 (0)