{"action":"created","issue":{"url":"https://api.github.com/repos/wireload/screenly-ose/issues/335","labels_url":"https://api.github.com/repos/wireload/screenly-ose/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/wireload/screenly-ose/issues/335/comments","events_url":"https://api.github.com/repos/wireload/screenly-ose/issues/335/events","html_url":"https://github.com/wireload/screenly-ose/pull/335","id":120978247,"number":335,"title":"try do HEAD then do GET if fails for url check ","user":{"login":"over64","id":2621273,"avatar_url":"https://avatars.githubusercontent.com/u/2621273?v=3","gravatar_id":"","url":"https://api.github.com/users/over64","html_url":"https://github.com/over64","followers_url":"https://api.github.com/users/over64/followers","following_url":"https://api.github.com/users/over64/following{/other_user}","gists_url":"https://api.github.com/users/over64/gists{/gist_id}","starred_url":"https://api.github.com/users/over64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/over64/subscriptions","organizations_url":"https://api.github.com/users/over64/orgs","repos_url":"https://api.github.com/users/over64/repos","events_url":"https://api.github.com/users/over64/events{/privacy}","received_events_url":"https://api.github.com/users/over64/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-08T10:26:15Z","updated_at":"2015-12-15T12:08:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wireload/screenly-ose/pulls/335","html_url":"https://github.com/wireload/screenly-ose/pull/335","diff_url":"https://github.com/wireload/screenly-ose/pull/335.diff","patch_url":"https://github.com/wireload/screenly-ose/pull/335.patch"},"body":"\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/wireload/screenly-ose/335)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/wireload/screenly-ose/issues/comments/164744986","html_url":"https://github.com/wireload/screenly-ose/pull/335#issuecomment-164744986","issue_url":"https://api.github.com/repos/wireload/screenly-ose/issues/335","id":164744986,"user":{"login":"femdom","id":13913521,"avatar_url":"https://avatars.githubusercontent.com/u/13913521?v=3","gravatar_id":"","url":"https://api.github.com/users/femdom","html_url":"https://github.com/femdom","followers_url":"https://api.github.com/users/femdom/followers","following_url":"https://api.github.com/users/femdom/following{/other_user}","gists_url":"https://api.github.com/users/femdom/gists{/gist_id}","starred_url":"https://api.github.com/users/femdom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/femdom/subscriptions","organizations_url":"https://api.github.com/users/femdom/orgs","repos_url":"https://api.github.com/users/femdom/repos","events_url":"https://api.github.com/users/femdom/events{/privacy}","received_events_url":"https://api.github.com/users/femdom/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T12:08:49Z","updated_at":"2015-12-15T12:08:49Z","body":"\n\n\n\n\n\n\n\n*[utils.py, line 98 \\[r1\\]](https://reviewable.io:443/reviews/wireload/screenly-ose/335#-K5EkPY761H454rBSt-p:-K5_WP3iIBQUcmCNMU7v:1539630220) ([raw file](https://github.com/wireload/screenly-ose/blob/044282d173a3a63213b55683fb80984f9b6c7c6e/utils.py#L98)):*\ntry:\n    if not validate_url(url):\n        return False\n\n    if requests.head(url, allow_redirects=True, timeout=10, verify=settings['verify_ssl']).status_code in (200, 405):\n        return False\n   \n    if requests.get(url, allow_redirects=True, timeout=10, verify=settings['verify_ssl']).status_code == 200:\n        return False\nexcept (requests.ConnectionError, requests.exceptions.Timeout):\n    pass\n\nreturn True\n\n---\n\n\n*Comments from the [review on Reviewable.io](https://reviewable.io:443/reviews/wireload/screenly-ose/335)*\n<!-- Sent from Reviewable.io -->\n"}}