Skip to content

Commit

Permalink
fix(response): content-type cache
Browse files Browse the repository at this point in the history
  • Loading branch information
snownd committed Sep 5, 2022
1 parent 4537bd0 commit 5828d2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion response.go
Expand Up @@ -36,7 +36,9 @@ func makeResponse(funcType reflect.Type, contentType string, results *[]reflect.
}
return
}
cache = responseBuilder{}
cache = responseBuilder{
contentType: contentType,
}
resMutex.Lock()
defer resMutex.Unlock()
numOut := funcType.NumOut()
Expand Down

0 comments on commit 5828d2d

Please sign in to comment.