{"action":"created","issue":{"url":"https://api.github.com/repos/curl/curl/issues/2661","repository_url":"https://api.github.com/repos/curl/curl","labels_url":"https://api.github.com/repos/curl/curl/issues/2661/labels{/name}","comments_url":"https://api.github.com/repos/curl/curl/issues/2661/comments","events_url":"https://api.github.com/repos/curl/curl/issues/2661/events","html_url":"https://github.com/curl/curl/issues/2661","id":332572420,"node_id":"MDU6SXNzdWUzMzI1NzI0MjA=","number":2661,"title":"CURLOPT_XOAUTH2_BEARER does not set Authentication header","user":{"login":"sspiri","id":26522110,"node_id":"MDQ6VXNlcjI2NTIyMTEw","avatar_url":"https://avatars2.githubusercontent.com/u/26522110?v=4","gravatar_id":"","url":"https://api.github.com/users/sspiri","html_url":"https://github.com/sspiri","followers_url":"https://api.github.com/users/sspiri/followers","following_url":"https://api.github.com/users/sspiri/following{/other_user}","gists_url":"https://api.github.com/users/sspiri/gists{/gist_id}","starred_url":"https://api.github.com/users/sspiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sspiri/subscriptions","organizations_url":"https://api.github.com/users/sspiri/orgs","repos_url":"https://api.github.com/users/sspiri/repos","events_url":"https://api.github.com/users/sspiri/events{/privacy}","received_events_url":"https://api.github.com/users/sspiri/received_events","type":"User","site_admin":false},"labels":[{"id":538402904,"node_id":"MDU6TGFiZWw1Mzg0MDI5MDQ=","url":"https://api.github.com/repos/curl/curl/labels/Authentication","name":"Authentication","color":"e99695","default":false},{"id":184118243,"node_id":"MDU6TGFiZWwxODQxMTgyNDM=","url":"https://api.github.com/repos/curl/curl/labels/HTTP","name":"HTTP","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-14T21:33:51Z","updated_at":"2018-06-14T21:53:00Z","closed_at":null,"author_association":"NONE","body":"<!-- Only file bugs here! Ask questions on the mailing list https://curl.haxx.se/mail/\r\n     Do not file security vulnerabilities here, e-mail curl-security at haxx.se\r\n\r\n     There are collections of known issues to be aware of:\r\n     https://curl.haxx.se/docs/knownbugs.html\r\n     https://curl.haxx.se/docs/todo.html       -->\r\n\r\n### I did this\r\n```\r\nint main(){\r\n    CURL* handle = curl_easy_init();\r\n\r\n    if(handle){\r\n        curl_easy_setopt(handle, CURLOPT_URL, \"https://example.net\");\r\n        curl_easy_setopt(handle, CURLOPT_VERBOSE, 1);\r\n        curl_easy_setopt(handle, CURLOPT_XOAUTH2_BEARER, \"TOKEN\");\r\n\r\n        curl_easy_perform(handle);\r\n        curl_easy_cleanup(handle);\r\n    }\r\n}\r\n```\r\n### I expected the following\r\nI expected this sets the \"Authentication: Bearer TOKEN\" header.\r\nI also noticed CURLAUTH_BEARER was removed but the documentation was not updated.\r\n### curl/libcurl version\r\n```\r\ncurl 7.60.0 (x86_64-pc-linux-gnu) libcurl/7.60.0 OpenSSL/1.1.0h zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.4) nghttp2/1.31.1\r\nRelease-Date: 2018-05-16\r\nProtocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp \r\nFeatures: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL\r\n```"},"comment":{"url":"https://api.github.com/repos/curl/curl/issues/comments/397449966","html_url":"https://github.com/curl/curl/issues/2661#issuecomment-397449966","issue_url":"https://api.github.com/repos/curl/curl/issues/2661","id":397449966,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzQ0OTk2Ng==","user":{"login":"bagder","id":177011,"node_id":"MDQ6VXNlcjE3NzAxMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/177011?v=4","gravatar_id":"","url":"https://api.github.com/users/bagder","html_url":"https://github.com/bagder","followers_url":"https://api.github.com/users/bagder/followers","following_url":"https://api.github.com/users/bagder/following{/other_user}","gists_url":"https://api.github.com/users/bagder/gists{/gist_id}","starred_url":"https://api.github.com/users/bagder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagder/subscriptions","organizations_url":"https://api.github.com/users/bagder/orgs","repos_url":"https://api.github.com/users/bagder/repos","events_url":"https://api.github.com/users/bagder/events{/privacy}","received_events_url":"https://api.github.com/users/bagder/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T21:53:00Z","updated_at":"2018-06-14T21:53:00Z","author_association":"MEMBER","body":"That's because 239a706 was committed after 7.60.0 was released..."}}
{"actor":{"display_login":"bagder"}}