"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/cmd/factory/http.go" between
gh-cli-1.12.0.tar.gz and gh-cli-1.12.1.tar.gz

About: GitHub CLI is GitHub’s official command line tool.

http.go  (gh-cli-1.12.0):http.go  (gh-cli-1.12.1)
skipping to change at line 116 skipping to change at line 116
return timezoneNames[offset], nil return timezoneNames[offset], nil
} }
return "", nil return "", nil
}), }),
) )
if setAccept { if setAccept {
opts = append(opts, opts = append(opts,
api.AddHeaderFunc("Accept", func(req *http.Request) (stri ng, error) { api.AddHeaderFunc("Accept", func(req *http.Request) (stri ng, error) {
accept := "application/vnd.github.merge-info-prev iew+json" // PullRequest.mergeStateStatus accept := "application/vnd.github.merge-info-prev iew+json" // PullRequest.mergeStateStatus
accept += ", application/vnd.github.nebula-previe w" // visibility when RESTing repos into an org
if ghinstance.IsEnterprise(getHost(req)) { if ghinstance.IsEnterprise(getHost(req)) {
accept += ", application/vnd.github.antio pe-preview" // Commit.statusCheckRollup accept += ", application/vnd.github.antio pe-preview" // Commit.statusCheckRollup
accept += ", application/vnd.github.shado w-cat-preview" // PullRequest.isDraft accept += ", application/vnd.github.shado w-cat-preview" // PullRequest.isDraft
} }
return accept, nil return accept, nil
}), }),
) )
} }
return api.NewHTTPClient(opts...), nil return api.NewHTTPClient(opts...), nil
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)