Skip to content

Commit 02216b4

Browse files
committed
Add vary header
1 parent 829867e commit 02216b4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/api_client/routers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ func NewRouter(apiVersion string, controller *handler.APIsAPIController) *fizz.F
129129
notFoundResponse,
130130
},
131131
func(c *gin.Context) {
132+
c.Writer.Header().Add("Vary", "Accept")
132133
if handler.AcceptsJsonLd(c.GetHeader("Accept")) {
133134
retrieveApiJsonLd(c)
134135
return

0 commit comments

Comments
 (0)