{"action":"created","issue":{"url":"https://api.github.com/repos/imgix/react-imgix/issues/22","repository_url":"https://api.github.com/repos/imgix/react-imgix","labels_url":"https://api.github.com/repos/imgix/react-imgix/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/imgix/react-imgix/issues/22/comments","events_url":"https://api.github.com/repos/imgix/react-imgix/issues/22/events","html_url":"https://github.com/imgix/react-imgix/pull/22","id":141042417,"number":22,"title":"Strip protocol","user":{"login":"tryggvigy","id":2373958,"avatar_url":"https://avatars.githubusercontent.com/u/2373958?v=3","gravatar_id":"","url":"https://api.github.com/users/tryggvigy","html_url":"https://github.com/tryggvigy","followers_url":"https://api.github.com/users/tryggvigy/followers","following_url":"https://api.github.com/users/tryggvigy/following{/other_user}","gists_url":"https://api.github.com/users/tryggvigy/gists{/gist_id}","starred_url":"https://api.github.com/users/tryggvigy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tryggvigy/subscriptions","organizations_url":"https://api.github.com/users/tryggvigy/orgs","repos_url":"https://api.github.com/users/tryggvigy/repos","events_url":"https://api.github.com/users/tryggvigy/events{/privacy}","received_events_url":"https://api.github.com/users/tryggvigy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-15T17:20:33Z","updated_at":"2016-03-15T20:54:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/imgix/react-imgix/pulls/22","html_url":"https://github.com/imgix/react-imgix/pull/22","diff_url":"https://github.com/imgix/react-imgix/pull/22.diff","patch_url":"https://github.com/imgix/react-imgix/pull/22.patch"},"body":"### Purpose\r\n\r\nThis PR implements the `stripProtocol` property that was discussed in https://github.com/imgix/react-imgix/issues/21. If it's truthy, the component will strip the protocol from the `src` attribute passed to it.\r\n\r\n### Example\r\n```jsx\r\n<Imgix\r\n  src={'https://mysource.imgix.net/demo.png'}\r\n  stripProtocol\r\n/>\r\n```\r\nwould transform the url string into  `//mysource.imgix.net/demo.png`\r\n\r\nThe specific protocol is not checked so `foobar://mysource.imgix.net/demo.png`\r\nwould also be stripped to `//mysource.imgix.net/demo.png` and make a valid request."},"comment":{"url":"https://api.github.com/repos/imgix/react-imgix/issues/comments/197015168","html_url":"https://github.com/imgix/react-imgix/pull/22#issuecomment-197015168","issue_url":"https://api.github.com/repos/imgix/react-imgix/issues/22","id":197015168,"user":{"login":"frederickfogerty","id":615334,"avatar_url":"https://avatars.githubusercontent.com/u/615334?v=3","gravatar_id":"","url":"https://api.github.com/users/frederickfogerty","html_url":"https://github.com/frederickfogerty","followers_url":"https://api.github.com/users/frederickfogerty/followers","following_url":"https://api.github.com/users/frederickfogerty/following{/other_user}","gists_url":"https://api.github.com/users/frederickfogerty/gists{/gist_id}","starred_url":"https://api.github.com/users/frederickfogerty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frederickfogerty/subscriptions","organizations_url":"https://api.github.com/users/frederickfogerty/orgs","repos_url":"https://api.github.com/users/frederickfogerty/repos","events_url":"https://api.github.com/users/frederickfogerty/events{/privacy}","received_events_url":"https://api.github.com/users/frederickfogerty/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T20:54:23Z","updated_at":"2016-03-15T20:54:23Z","body":"See #21.\r\n\r\n@ekosz that's interesting that `//` has become an anti-pattern. Of course we can't make all urls HTTPS as some servers don't support HTTPS, but for imgix this will be fine."}}