{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/3131","labels_url":"https://api.github.com/repos/astropy/astropy/issues/3131/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/3131/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/3131/events","html_url":"https://github.com/astropy/astropy/pull/3131","id":49837440,"number":3131,"title":"Fixes issue #3122 of filenames being taken as URL","user":{"login":"rashoodkhan","id":2310087,"avatar_url":"https://avatars.githubusercontent.com/u/2310087?v=3","gravatar_id":"","url":"https://api.github.com/users/rashoodkhan","html_url":"https://github.com/rashoodkhan","followers_url":"https://api.github.com/users/rashoodkhan/followers","following_url":"https://api.github.com/users/rashoodkhan/following{/other_user}","gists_url":"https://api.github.com/users/rashoodkhan/gists{/gist_id}","starred_url":"https://api.github.com/users/rashoodkhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rashoodkhan/subscriptions","organizations_url":"https://api.github.com/users/rashoodkhan/orgs","repos_url":"https://api.github.com/users/rashoodkhan/repos","events_url":"https://api.github.com/users/rashoodkhan/events{/privacy}","received_events_url":"https://api.github.com/users/rashoodkhan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/Close?","name":"Close?","color":"eb6420"},{"url":"https://api.github.com/repos/astropy/astropy/labels/io.fits","name":"io.fits","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-11-23T20:15:08Z","updated_at":"2015-01-26T17:05:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/3131","html_url":"https://github.com/astropy/astropy/pull/3131","diff_url":"https://github.com/astropy/astropy/pull/3131.diff","patch_url":"https://github.com/astropy/astropy/pull/3131.patch"},"body":"I have added more checks to verify that given fileobj is an url by checking the scheme. The scheme is returned by urllib.parse.urlparse(urlfile).scheme - which contains the protocol for urlfile. For a valid URL, the scheme could be HTTP, HTTPS or FTP, hence anything else returned apart from this should not be treated as URL and should be treated as File.  Fixes #3122 "},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/71495864","html_url":"https://github.com/astropy/astropy/pull/3131#issuecomment-71495864","issue_url":"https://api.github.com/repos/astropy/astropy/issues/3131","id":71495864,"user":{"login":"embray","id":676149,"avatar_url":"https://avatars.githubusercontent.com/u/676149?v=3","gravatar_id":"","url":"https://api.github.com/users/embray","html_url":"https://github.com/embray","followers_url":"https://api.github.com/users/embray/followers","following_url":"https://api.github.com/users/embray/following{/other_user}","gists_url":"https://api.github.com/users/embray/gists{/gist_id}","starred_url":"https://api.github.com/users/embray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/embray/subscriptions","organizations_url":"https://api.github.com/users/embray/orgs","repos_url":"https://api.github.com/users/embray/repos","events_url":"https://api.github.com/users/embray/events{/privacy}","received_events_url":"https://api.github.com/users/embray/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T17:05:27Z","updated_at":"2015-01-26T17:05:27Z","body":"Yeah, adding the test will just take me a few minutes.  This will be fixed for 1.0 at the latest."}}