{"action":"created","issue":{"url":"https://api.github.com/repos/bagder/curl/issues/351","labels_url":"https://api.github.com/repos/bagder/curl/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/bagder/curl/issues/351/comments","events_url":"https://api.github.com/repos/bagder/curl/issues/351/events","html_url":"https://github.com/bagder/curl/pull/351","id":95987726,"number":351,"title":"Add `--proto-default` option","user":{"login":"waisbrot","id":1170218,"avatar_url":"https://avatars.githubusercontent.com/u/1170218?v=3","gravatar_id":"","url":"https://api.github.com/users/waisbrot","html_url":"https://github.com/waisbrot","followers_url":"https://api.github.com/users/waisbrot/followers","following_url":"https://api.github.com/users/waisbrot/following{/other_user}","gists_url":"https://api.github.com/users/waisbrot/gists{/gist_id}","starred_url":"https://api.github.com/users/waisbrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waisbrot/subscriptions","organizations_url":"https://api.github.com/users/waisbrot/orgs","repos_url":"https://api.github.com/users/waisbrot/repos","events_url":"https://api.github.com/users/waisbrot/events{/privacy}","received_events_url":"https://api.github.com/users/waisbrot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jay","id":965580,"avatar_url":"https://avatars.githubusercontent.com/u/965580?v=3","gravatar_id":"","url":"https://api.github.com/users/jay","html_url":"https://github.com/jay","followers_url":"https://api.github.com/users/jay/followers","following_url":"https://api.github.com/users/jay/following{/other_user}","gists_url":"https://api.github.com/users/jay/gists{/gist_id}","starred_url":"https://api.github.com/users/jay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jay/subscriptions","organizations_url":"https://api.github.com/users/jay/orgs","repos_url":"https://api.github.com/users/jay/repos","events_url":"https://api.github.com/users/jay/events{/privacy}","received_events_url":"https://api.github.com/users/jay/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2015-07-20T05:03:57Z","updated_at":"2015-08-19T07:24:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bagder/curl/pulls/351","html_url":"https://github.com/bagder/curl/pull/351","diff_url":"https://github.com/bagder/curl/pull/351.diff","patch_url":"https://github.com/bagder/curl/pull/351.patch"},"body":"This modifies the protocol-guessing algorithm to respect\r\nthe available protocols. For example:\r\n* `curl --proto -ftp ftp.gnu.org` does not consider FTP as the protocol (instead it will try HTTP)\r\n* `curl --proto '=https' www.gnu.org` will try HTTPS\r\n\r\nThe impetus here is that I want to be able to get an HTTPS connection when I have a scheme-less URL. \r\n\r\nI'm not sure if --proto was the right option to go after here, but like that this stops curl from selecting a disallowed protocol and then complaining about it."},"comment":{"url":"https://api.github.com/repos/bagder/curl/issues/comments/132473919","html_url":"https://github.com/bagder/curl/pull/351#issuecomment-132473919","issue_url":"https://api.github.com/repos/bagder/curl/issues/351","id":132473919,"user":{"login":"bagder","id":177011,"avatar_url":"https://avatars.githubusercontent.com/u/177011?v=3","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":"2015-08-19T07:24:08Z","updated_at":"2015-08-19T07:24:08Z","body":"My personal preference would be to leave it as a string to make it more obvious to users that it really is a single scheme you'd specify."}}