Skip to content

Commit 57140ad

Browse files
committed
add header in correct place
1 parent 9be9229 commit 57140ad

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ func (c Client) GraphQL(hostname string, query string, variables map[string]inte
239239
}
240240

241241
req.Header.Set("Content-Type", "application/json; charset=utf-8")
242-
req.Header.Set("Accept", "application/vnd.github.merge-info-preview+json")
243242

244243
resp, err := c.http.Do(req)
245244
if err != nil {

pkg/cmd/factory/http.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ func NewHTTPClient(io *iostreams.IOStreams, cfg config.Config, appVersion string
8787
api.AddHeaderFunc("Accept", func(req *http.Request) (string, error) {
8888
// antiope-preview: Checks
8989
accept := "application/vnd.github.antiope-preview+json"
90+
// introduced for #2952: pr branch up to date status
91+
accept += ", application/vnd.github.merge-info-preview+json"
9092
if ghinstance.IsEnterprise(req.URL.Hostname()) {
9193
// shadow-cat-preview: Draft pull requests
9294
accept += ", application/vnd.github.shadow-cat-preview"

0 commit comments

Comments
 (0)