aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/github/licenses.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/google/go-github/github/licenses.go')
-rw-r--r--vendor/github.com/google/go-github/github/licenses.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/vendor/github.com/google/go-github/github/licenses.go b/vendor/github.com/google/go-github/github/licenses.go
index e9cd177..1176d3a 100644
--- a/vendor/github.com/google/go-github/github/licenses.go
+++ b/vendor/github.com/google/go-github/github/licenses.go
@@ -67,9 +67,6 @@ func (s *LicensesService) List(ctx context.Context) ([]*License, *Response, erro
return nil, nil, err
}
- // TODO: remove custom Accept header when this API fully launches
- req.Header.Set("Accept", mediaTypeLicensesPreview)
-
var licenses []*License
resp, err := s.client.Do(ctx, req, &licenses)
if err != nil {
@@ -90,9 +87,6 @@ func (s *LicensesService) Get(ctx context.Context, licenseName string) (*License
return nil, nil, err
}
- // TODO: remove custom Accept header when this API fully launches
- req.Header.Set("Accept", mediaTypeLicensesPreview)
-
license := new(License)
resp, err := s.client.Do(ctx, req, license)
if err != nil {