{"action":"closed","number":25,"pull_request":{"url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/pulls/25","id":24274671,"html_url":"https://github.com/dstnbrkr/VCRURLConnection/pull/25","diff_url":"https://github.com/dstnbrkr/VCRURLConnection/pull/25.diff","patch_url":"https://github.com/dstnbrkr/VCRURLConnection/pull/25.patch","issue_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/issues/25","number":25,"state":"closed","locked":false,"title":"NSURLSession support broken on iOS8+","user":{"login":"glentregoning","id":1776494,"avatar_url":"https://avatars.githubusercontent.com/u/1776494?v=3","gravatar_id":"","url":"https://api.github.com/users/glentregoning","html_url":"https://github.com/glentregoning","followers_url":"https://api.github.com/users/glentregoning/followers","following_url":"https://api.github.com/users/glentregoning/following{/other_user}","gists_url":"https://api.github.com/users/glentregoning/gists{/gist_id}","starred_url":"https://api.github.com/users/glentregoning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glentregoning/subscriptions","organizations_url":"https://api.github.com/users/glentregoning/orgs","repos_url":"https://api.github.com/users/glentregoning/repos","events_url":"https://api.github.com/users/glentregoning/events{/privacy}","received_events_url":"https://api.github.com/users/glentregoning/received_events","type":"User","site_admin":false},"body":"While testing out VCRURLConnection on iOS8+ found nothing was being recorded. \r\n\r\nIt appears that -[NSURLSessionConfiguration protocolClasses] now behaves differently than it did on earlier iOS versions (supported by https://github.com/AliSoftware/OHHTTPStubs/issues/65 ), now returning internal protocol classes. As a result adding VCR's classes at the end of the list will mean they never get used (presumably the official HTTP / HTTPS protocol classes are used instead). \r\n\r\nThe patch below inserts the VCR*URLProtocol's at the front of any previous list to avoid this problem. This should be backwards compatible to earlier versions there this list was originally empty. \r\n","created_at":"2014-11-12T07:27:28Z","updated_at":"2015-02-26T20:37:21Z","closed_at":"2015-02-26T20:37:21Z","merged_at":"2015-02-26T20:37:21Z","merge_commit_sha":"06081a66cda03a98d6041ae4897b6787e3b7ed74","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/pulls/25/commits","review_comments_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/pulls/25/comments","review_comment_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/issues/25/comments","statuses_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/statuses/9da76753cdeb88c78c47a727ce792267d28e074f","head":{"label":"glentregoning:master","ref":"master","sha":"9da76753cdeb88c78c47a727ce792267d28e074f","user":{"login":"glentregoning","id":1776494,"avatar_url":"https://avatars.githubusercontent.com/u/1776494?v=3","gravatar_id":"","url":"https://api.github.com/users/glentregoning","html_url":"https://github.com/glentregoning","followers_url":"https://api.github.com/users/glentregoning/followers","following_url":"https://api.github.com/users/glentregoning/following{/other_user}","gists_url":"https://api.github.com/users/glentregoning/gists{/gist_id}","starred_url":"https://api.github.com/users/glentregoning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glentregoning/subscriptions","organizations_url":"https://api.github.com/users/glentregoning/orgs","repos_url":"https://api.github.com/users/glentregoning/repos","events_url":"https://api.github.com/users/glentregoning/events{/privacy}","received_events_url":"https://api.github.com/users/glentregoning/received_events","type":"User","site_admin":false},"repo":{"id":26523975,"name":"VCRURLConnection","full_name":"glentregoning/VCRURLConnection","owner":{"login":"glentregoning","id":1776494,"avatar_url":"https://avatars.githubusercontent.com/u/1776494?v=3","gravatar_id":"","url":"https://api.github.com/users/glentregoning","html_url":"https://github.com/glentregoning","followers_url":"https://api.github.com/users/glentregoning/followers","following_url":"https://api.github.com/users/glentregoning/following{/other_user}","gists_url":"https://api.github.com/users/glentregoning/gists{/gist_id}","starred_url":"https://api.github.com/users/glentregoning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glentregoning/subscriptions","organizations_url":"https://api.github.com/users/glentregoning/orgs","repos_url":"https://api.github.com/users/glentregoning/repos","events_url":"https://api.github.com/users/glentregoning/events{/privacy}","received_events_url":"https://api.github.com/users/glentregoning/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/glentregoning/VCRURLConnection","description":"VCRURLConnection is an iOS and OSX API to record and replay HTTP interactions, inspired by VCR for ruby","fork":true,"url":"https://api.github.com/repos/glentregoning/VCRURLConnection","forks_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/forks","keys_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/teams","hooks_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/hooks","issue_events_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/issues/events{/number}","events_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/events","assignees_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/assignees{/user}","branches_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/branches{/branch}","tags_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/tags","blobs_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/git/refs{/sha}","trees_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/statuses/{sha}","languages_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/languages","stargazers_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/stargazers","contributors_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/contributors","subscribers_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/subscribers","subscription_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/subscription","commits_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/commits{/sha}","git_commits_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/git/commits{/sha}","comments_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/comments{/number}","issue_comment_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/issues/comments{/number}","contents_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/contents/{+path}","compare_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/merges","archive_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/downloads","issues_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/issues{/number}","pulls_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/pulls{/number}","milestones_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/milestones{/number}","notifications_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/labels{/name}","releases_url":"https://api.github.com/repos/glentregoning/VCRURLConnection/releases{/id}","created_at":"2014-11-12T07:15:57Z","updated_at":"2014-11-12T07:23:10Z","pushed_at":"2014-11-12T07:23:09Z","git_url":"git://github.com/glentregoning/VCRURLConnection.git","ssh_url":"git@github.com:glentregoning/VCRURLConnection.git","clone_url":"https://github.com/glentregoning/VCRURLConnection.git","svn_url":"https://github.com/glentregoning/VCRURLConnection","homepage":"","size":556,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dstnbrkr:master","ref":"master","sha":"aa0b0fcf0e112da363e9c63d6215b216ff604614","user":{"login":"dstnbrkr","id":32656,"avatar_url":"https://avatars.githubusercontent.com/u/32656?v=3","gravatar_id":"","url":"https://api.github.com/users/dstnbrkr","html_url":"https://github.com/dstnbrkr","followers_url":"https://api.github.com/users/dstnbrkr/followers","following_url":"https://api.github.com/users/dstnbrkr/following{/other_user}","gists_url":"https://api.github.com/users/dstnbrkr/gists{/gist_id}","starred_url":"https://api.github.com/users/dstnbrkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstnbrkr/subscriptions","organizations_url":"https://api.github.com/users/dstnbrkr/orgs","repos_url":"https://api.github.com/users/dstnbrkr/repos","events_url":"https://api.github.com/users/dstnbrkr/events{/privacy}","received_events_url":"https://api.github.com/users/dstnbrkr/received_events","type":"User","site_admin":false},"repo":{"id":6755232,"name":"VCRURLConnection","full_name":"dstnbrkr/VCRURLConnection","owner":{"login":"dstnbrkr","id":32656,"avatar_url":"https://avatars.githubusercontent.com/u/32656?v=3","gravatar_id":"","url":"https://api.github.com/users/dstnbrkr","html_url":"https://github.com/dstnbrkr","followers_url":"https://api.github.com/users/dstnbrkr/followers","following_url":"https://api.github.com/users/dstnbrkr/following{/other_user}","gists_url":"https://api.github.com/users/dstnbrkr/gists{/gist_id}","starred_url":"https://api.github.com/users/dstnbrkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstnbrkr/subscriptions","organizations_url":"https://api.github.com/users/dstnbrkr/orgs","repos_url":"https://api.github.com/users/dstnbrkr/repos","events_url":"https://api.github.com/users/dstnbrkr/events{/privacy}","received_events_url":"https://api.github.com/users/dstnbrkr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dstnbrkr/VCRURLConnection","description":"VCRURLConnection is an iOS and OSX API to record and replay HTTP interactions, inspired by VCR for ruby","fork":false,"url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection","forks_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/forks","keys_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/teams","hooks_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/hooks","issue_events_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/issues/events{/number}","events_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/events","assignees_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/assignees{/user}","branches_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/branches{/branch}","tags_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/tags","blobs_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/git/refs{/sha}","trees_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/statuses/{sha}","languages_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/languages","stargazers_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/stargazers","contributors_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/contributors","subscribers_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/subscribers","subscription_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/subscription","commits_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/commits{/sha}","git_commits_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/git/commits{/sha}","comments_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/comments{/number}","issue_comment_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/issues/comments{/number}","contents_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/contents/{+path}","compare_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/merges","archive_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/downloads","issues_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/issues{/number}","pulls_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/pulls{/number}","milestones_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/milestones{/number}","notifications_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/labels{/name}","releases_url":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/releases{/id}","created_at":"2012-11-19T05:06:36Z","updated_at":"2015-02-20T09:13:48Z","pushed_at":"2015-02-26T20:37:21Z","git_url":"git://github.com/dstnbrkr/VCRURLConnection.git","ssh_url":"git@github.com:dstnbrkr/VCRURLConnection.git","clone_url":"https://github.com/dstnbrkr/VCRURLConnection.git","svn_url":"https://github.com/dstnbrkr/VCRURLConnection","homepage":"","size":1175,"stargazers_count":288,"watchers_count":288,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":5,"forks":22,"open_issues":5,"watchers":288,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/pulls/25"},"html":{"href":"https://github.com/dstnbrkr/VCRURLConnection/pull/25"},"issue":{"href":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/issues/25"},"comments":{"href":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/dstnbrkr/VCRURLConnection/statuses/9da76753cdeb88c78c47a727ce792267d28e074f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"dstnbrkr","id":32656,"avatar_url":"https://avatars.githubusercontent.com/u/32656?v=3","gravatar_id":"","url":"https://api.github.com/users/dstnbrkr","html_url":"https://github.com/dstnbrkr","followers_url":"https://api.github.com/users/dstnbrkr/followers","following_url":"https://api.github.com/users/dstnbrkr/following{/other_user}","gists_url":"https://api.github.com/users/dstnbrkr/gists{/gist_id}","starred_url":"https://api.github.com/users/dstnbrkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstnbrkr/subscriptions","organizations_url":"https://api.github.com/users/dstnbrkr/orgs","repos_url":"https://api.github.com/users/dstnbrkr/repos","events_url":"https://api.github.com/users/dstnbrkr/events{/privacy}","received_events_url":"https://api.github.com/users/dstnbrkr/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}