We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 779cfad commit 4d22626Copy full SHA for 4d22626
common.rb
@@ -74,8 +74,9 @@ def gh_upload_http
74
75
def set_v3_common_headers(req, connection: nil)
76
req['User-Agent'] = GH_NAME
77
- req['Authorization'] = "token #{TOKEN}"
+ req['Authorization'] = "Bearer #{TOKEN}"
78
req['Accept'] = 'application/vnd.github+json' # old 'application/vnd.github.v3+json'
79
+ req['X-GitHub-Api-Version'] = '2022-11-28'
80
req['Connection'] = 'close' if connection == 'close'
81
end
82
0 commit comments