Skip to content

Commit 5daa2da

Browse files
zeroshadeianmcook
andauthored
feat(req): add Accept header (#256)
closes #254 --------- Co-authored-by: Ian Cook <ianmcook@gmail.com>
1 parent 6654979 commit 5daa2da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ func makereq(u string) (resp *http.Response, err error) {
158158
Header: http.Header{},
159159
}
160160

161+
if uri.Path == "/index.yaml" {
162+
req.Header.Set("Accept", "application/yaml")
163+
}
164+
161165
if cred != nil {
162166
if auth.IsColumnarPrivateRegistry(uri) {
163167
// if we're accessing the private registry then attempt to

0 commit comments

Comments
 (0)