Skip to content

Commit 576e460

Browse files
authored
Remove obsolete apps manifest preview custom header (#1858)
1 parent 9d6877c commit 576e460

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

github/apps_manifest.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ import (
1010
"fmt"
1111
)
1212

13-
const (
14-
mediaTypeAppManifestPreview = "application/vnd.github.fury-preview+json"
15-
)
16-
1713
// AppConfig describes the configuration of a GitHub App.
1814
type AppConfig struct {
1915
ID *int64 `json:"id,omitempty"`
@@ -41,7 +37,6 @@ func (s *AppsService) CompleteAppManifest(ctx context.Context, code string) (*Ap
4137
if err != nil {
4238
return nil, nil, err
4339
}
44-
req.Header.Set("Accept", mediaTypeAppManifestPreview)
4540

4641
cfg := new(AppConfig)
4742
resp, err := s.client.Do(ctx, req, cfg)

github/apps_manifest_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ func TestGetConfig(t *testing.T) {
3030

3131
mux.HandleFunc("/app-manifests/code/conversions", func(w http.ResponseWriter, r *http.Request) {
3232
testMethod(t, r, "POST")
33-
testHeader(t, r, "Accept", mediaTypeAppManifestPreview)
3433
fmt.Fprint(w, manifestJSON)
3534
})
3635

0 commit comments

Comments
 (0)