Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make response varies on multi-value header cacheable
This resulted in actions-runner-controller to not cache API responses when one used GitHub App authentication, because in the current version of go-github, the client sets "Accept":["application/vnd.github.v3+json","application/vnd.github.machine-man-preview+json"] and httpcache produces X-Varied-Accept: "X-Varied-Accept":["application/vnd.github.v3+json"] `varyMatches` thinks they do not match. With this patch, the produced X-Varied-Accept becomes: "X-Varied-Accept":["application/vnd.github.v3+json"] and that fixes the issue.
- Loading branch information