Skip to content

Commit

Permalink
Remove obsolete apps manifest preview custom header (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
chmouel authored Apr 29, 2021
1 parent 9d6877c commit 576e460
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions github/apps_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import (
"fmt"
)

const (
mediaTypeAppManifestPreview = "application/vnd.github.fury-preview+json"
)

// AppConfig describes the configuration of a GitHub App.
type AppConfig struct {
ID *int64 `json:"id,omitempty"`
Expand Down Expand Up @@ -41,7 +37,6 @@ func (s *AppsService) CompleteAppManifest(ctx context.Context, code string) (*Ap
if err != nil {
return nil, nil, err
}
req.Header.Set("Accept", mediaTypeAppManifestPreview)

cfg := new(AppConfig)
resp, err := s.client.Do(ctx, req, cfg)
Expand Down
1 change: 0 additions & 1 deletion github/apps_manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func TestGetConfig(t *testing.T) {

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

Expand Down

0 comments on commit 576e460

Please sign in to comment.