{"action":"closed","issue":{"url":"https://api.github.com/repos/pyke369/PKMultipartInputStream/issues/10","labels_url":"https://api.github.com/repos/pyke369/PKMultipartInputStream/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/pyke369/PKMultipartInputStream/issues/10/comments","events_url":"https://api.github.com/repos/pyke369/PKMultipartInputStream/issues/10/events","html_url":"https://github.com/pyke369/PKMultipartInputStream/issues/10","id":114883782,"number":10,"title":"Exception: -setDelegate: only defined for abstract class. Define -[PKMultipartBodyStream setDelegate:]!'","user":{"login":"ayoy","id":14022,"avatar_url":"https://avatars.githubusercontent.com/u/14022?v=3","gravatar_id":"","url":"https://api.github.com/users/ayoy","html_url":"https://github.com/ayoy","followers_url":"https://api.github.com/users/ayoy/followers","following_url":"https://api.github.com/users/ayoy/following{/other_user}","gists_url":"https://api.github.com/users/ayoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ayoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayoy/subscriptions","organizations_url":"https://api.github.com/users/ayoy/orgs","repos_url":"https://api.github.com/users/ayoy/repos","events_url":"https://api.github.com/users/ayoy/events{/privacy}","received_events_url":"https://api.github.com/users/ayoy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-03T18:49:42Z","updated_at":"2015-11-03T20:36:09Z","closed_at":"2015-11-03T20:36:09Z","body":"Hi and thanks a lot for this nice and handy class!\r\n\r\nI came across a small issue when using PKMultipartInputStream with NSURLSession and NSURLSessionUploadTask. The exception as in title is thrown, and it's basically the same as described in [this AFNetworking issue](https://github.com/AFNetworking/AFNetworking/issues/2201). The solution requires synthesizing a delegate property in PKMultipartBodyStream.m, just like Mattt did in AFMultipartBodyStream [in this commit](https://github.com/AFNetworking/AFNetworking/commit/ca1441e09831bb9c9cece069a6330555642e49df).\r\n\r\nFor now, as a workaround, I subclass PKMultipartBodyStream and synthesize a delegate in my class. It would be nice to have this fixed upstream, though :)"}}