{"action":"created","comment":{"url":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/comments/52841430","id":52841430,"diff_hunk":"@@ -97,18 +137,19 @@ def __init__(self, host,\n         else:\n             connector = aiohttp.TCPConnector(loop=self._loop, **connector_args)\n \n-        self._aio_seesion = aiohttp.ClientSession(\n+        self._aio_session = aiohttp.ClientSession(\n             connector=connector,\n             skip_auto_headers={'CONTENT-TYPE'},\n             response_class=ClientResponseProxy, loop=self._loop)\n \n     @asyncio.coroutine\n     def _request(self, method, url, headers, data):\n+        expect100 = method in ['PUT', 'POST'] and hasattr(data, 'read')\n \n         headers_ = dict(\n             (z[0], text_(z[1], encoding='utf-8')) for z in headers.items())\n-        resp = yield from self._aio_seesion.request(\n-            method, url=url, headers=headers_, data=data)\n+        resp = yield from self._aio_session.request(\n+            method, url=url, headers=headers_, data=data, expect100=expect100)","path":"aiobotocore/endpoint.py","position":83,"original_position":83,"commit_id":"22e974ed66eaf26e9390f07a7b73bd173f221f3e","original_commit_id":"22e974ed66eaf26e9390f07a7b73bd173f221f3e","user":{"login":"jettify","id":223335,"avatar_url":"https://avatars.githubusercontent.com/u/223335?v=3","gravatar_id":"","url":"https://api.github.com/users/jettify","html_url":"https://github.com/jettify","followers_url":"https://api.github.com/users/jettify/followers","following_url":"https://api.github.com/users/jettify/following{/other_user}","gists_url":"https://api.github.com/users/jettify/gists{/gist_id}","starred_url":"https://api.github.com/users/jettify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jettify/subscriptions","organizations_url":"https://api.github.com/users/jettify/orgs","repos_url":"https://api.github.com/users/jettify/repos","events_url":"https://api.github.com/users/jettify/events{/privacy}","received_events_url":"https://api.github.com/users/jettify/received_events","type":"User","site_admin":false},"body":"could you elaborate on this? s3 could send 100 status code? ","created_at":"2016-02-14T11:48:23Z","updated_at":"2016-02-14T11:48:23Z","html_url":"https://github.com/aio-libs/aiobotocore/pull/28#discussion_r52841430","pull_request_url":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/comments/52841430"},"html":{"href":"https://github.com/aio-libs/aiobotocore/pull/28#discussion_r52841430"},"pull_request":{"href":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/28","id":58796442,"html_url":"https://github.com/aio-libs/aiobotocore/pull/28","diff_url":"https://github.com/aio-libs/aiobotocore/pull/28.diff","patch_url":"https://github.com/aio-libs/aiobotocore/pull/28.patch","issue_url":"https://api.github.com/repos/aio-libs/aiobotocore/issues/28","number":28,"state":"open","locked":false,"title":"variety of fixes","user":{"login":"thehesiod","id":4001789,"avatar_url":"https://avatars.githubusercontent.com/u/4001789?v=3","gravatar_id":"","url":"https://api.github.com/users/thehesiod","html_url":"https://github.com/thehesiod","followers_url":"https://api.github.com/users/thehesiod/followers","following_url":"https://api.github.com/users/thehesiod/following{/other_user}","gists_url":"https://api.github.com/users/thehesiod/gists{/gist_id}","starred_url":"https://api.github.com/users/thehesiod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehesiod/subscriptions","organizations_url":"https://api.github.com/users/thehesiod/orgs","repos_url":"https://api.github.com/users/thehesiod/repos","events_url":"https://api.github.com/users/thehesiod/events{/privacy}","received_events_url":"https://api.github.com/users/thehesiod/received_events","type":"User","site_admin":false},"body":"This PR fixes pagination with the new botocore, adds the missing before event, and some new features.\r\n\r\n- \\__aenter__/\\__aexit__ forwards to the aiohttp.ClientResponse for \"async with\" support to context close the response.  This will \"release\" the response object instead of close to allow HTTP1.1 sockets reuse.\r\n- text/json/read_all also foward to aiohttp.ClientResponse to allow users to call these methods.\r\n- hook up missing 'before-event-' (prevented add_expect_header from being called)\r\n- enable aiohttp expect1000 for the same situations botocore adds the headers for it (see botocore/handlers.py:add_expect_header)\r\n- add force_close TCPConnector parameter support","created_at":"2016-02-09T19:30:32Z","updated_at":"2016-02-14T11:48:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fb6406f393f4b8bec6b7877f6d25127cf9509f4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/28/commits","review_comments_url":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/28/comments","review_comment_url":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aio-libs/aiobotocore/issues/28/comments","statuses_url":"https://api.github.com/repos/aio-libs/aiobotocore/statuses/22e974ed66eaf26e9390f07a7b73bd173f221f3e","head":{"label":"cbrichford:thehesiod-work","ref":"thehesiod-work","sha":"22e974ed66eaf26e9390f07a7b73bd173f221f3e","user":{"login":"cbrichford","id":5386078,"avatar_url":"https://avatars.githubusercontent.com/u/5386078?v=3","gravatar_id":"","url":"https://api.github.com/users/cbrichford","html_url":"https://github.com/cbrichford","followers_url":"https://api.github.com/users/cbrichford/followers","following_url":"https://api.github.com/users/cbrichford/following{/other_user}","gists_url":"https://api.github.com/users/cbrichford/gists{/gist_id}","starred_url":"https://api.github.com/users/cbrichford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbrichford/subscriptions","organizations_url":"https://api.github.com/users/cbrichford/orgs","repos_url":"https://api.github.com/users/cbrichford/repos","events_url":"https://api.github.com/users/cbrichford/events{/privacy}","received_events_url":"https://api.github.com/users/cbrichford/received_events","type":"User","site_admin":false},"repo":{"id":49933742,"name":"aiobotocore","full_name":"cbrichford/aiobotocore","owner":{"login":"cbrichford","id":5386078,"avatar_url":"https://avatars.githubusercontent.com/u/5386078?v=3","gravatar_id":"","url":"https://api.github.com/users/cbrichford","html_url":"https://github.com/cbrichford","followers_url":"https://api.github.com/users/cbrichford/followers","following_url":"https://api.github.com/users/cbrichford/following{/other_user}","gists_url":"https://api.github.com/users/cbrichford/gists{/gist_id}","starred_url":"https://api.github.com/users/cbrichford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbrichford/subscriptions","organizations_url":"https://api.github.com/users/cbrichford/orgs","repos_url":"https://api.github.com/users/cbrichford/repos","events_url":"https://api.github.com/users/cbrichford/events{/privacy}","received_events_url":"https://api.github.com/users/cbrichford/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbrichford/aiobotocore","description":"asyncio support for botocore library using aiohttp","fork":true,"url":"https://api.github.com/repos/cbrichford/aiobotocore","forks_url":"https://api.github.com/repos/cbrichford/aiobotocore/forks","keys_url":"https://api.github.com/repos/cbrichford/aiobotocore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbrichford/aiobotocore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbrichford/aiobotocore/teams","hooks_url":"https://api.github.com/repos/cbrichford/aiobotocore/hooks","issue_events_url":"https://api.github.com/repos/cbrichford/aiobotocore/issues/events{/number}","events_url":"https://api.github.com/repos/cbrichford/aiobotocore/events","assignees_url":"https://api.github.com/repos/cbrichford/aiobotocore/assignees{/user}","branches_url":"https://api.github.com/repos/cbrichford/aiobotocore/branches{/branch}","tags_url":"https://api.github.com/repos/cbrichford/aiobotocore/tags","blobs_url":"https://api.github.com/repos/cbrichford/aiobotocore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbrichford/aiobotocore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbrichford/aiobotocore/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbrichford/aiobotocore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbrichford/aiobotocore/statuses/{sha}","languages_url":"https://api.github.com/repos/cbrichford/aiobotocore/languages","stargazers_url":"https://api.github.com/repos/cbrichford/aiobotocore/stargazers","contributors_url":"https://api.github.com/repos/cbrichford/aiobotocore/contributors","subscribers_url":"https://api.github.com/repos/cbrichford/aiobotocore/subscribers","subscription_url":"https://api.github.com/repos/cbrichford/aiobotocore/subscription","commits_url":"https://api.github.com/repos/cbrichford/aiobotocore/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbrichford/aiobotocore/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbrichford/aiobotocore/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbrichford/aiobotocore/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbrichford/aiobotocore/contents/{+path}","compare_url":"https://api.github.com/repos/cbrichford/aiobotocore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbrichford/aiobotocore/merges","archive_url":"https://api.github.com/repos/cbrichford/aiobotocore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbrichford/aiobotocore/downloads","issues_url":"https://api.github.com/repos/cbrichford/aiobotocore/issues{/number}","pulls_url":"https://api.github.com/repos/cbrichford/aiobotocore/pulls{/number}","milestones_url":"https://api.github.com/repos/cbrichford/aiobotocore/milestones{/number}","notifications_url":"https://api.github.com/repos/cbrichford/aiobotocore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbrichford/aiobotocore/labels{/name}","releases_url":"https://api.github.com/repos/cbrichford/aiobotocore/releases{/id}","deployments_url":"https://api.github.com/repos/cbrichford/aiobotocore/deployments","created_at":"2016-01-19T07:10:17Z","updated_at":"2016-01-19T07:10:18Z","pushed_at":"2016-02-11T06:56:45Z","git_url":"git://github.com/cbrichford/aiobotocore.git","ssh_url":"git@github.com:cbrichford/aiobotocore.git","clone_url":"https://github.com/cbrichford/aiobotocore.git","svn_url":"https://github.com/cbrichford/aiobotocore","homepage":null,"size":51,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"aio-libs:master","ref":"master","sha":"0fb84392895d3098d06d93cd58fe7e5040809d1a","user":{"login":"aio-libs","id":7049303,"avatar_url":"https://avatars.githubusercontent.com/u/7049303?v=3","gravatar_id":"","url":"https://api.github.com/users/aio-libs","html_url":"https://github.com/aio-libs","followers_url":"https://api.github.com/users/aio-libs/followers","following_url":"https://api.github.com/users/aio-libs/following{/other_user}","gists_url":"https://api.github.com/users/aio-libs/gists{/gist_id}","starred_url":"https://api.github.com/users/aio-libs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aio-libs/subscriptions","organizations_url":"https://api.github.com/users/aio-libs/orgs","repos_url":"https://api.github.com/users/aio-libs/repos","events_url":"https://api.github.com/users/aio-libs/events{/privacy}","received_events_url":"https://api.github.com/users/aio-libs/received_events","type":"Organization","site_admin":false},"repo":{"id":36618494,"name":"aiobotocore","full_name":"aio-libs/aiobotocore","owner":{"login":"aio-libs","id":7049303,"avatar_url":"https://avatars.githubusercontent.com/u/7049303?v=3","gravatar_id":"","url":"https://api.github.com/users/aio-libs","html_url":"https://github.com/aio-libs","followers_url":"https://api.github.com/users/aio-libs/followers","following_url":"https://api.github.com/users/aio-libs/following{/other_user}","gists_url":"https://api.github.com/users/aio-libs/gists{/gist_id}","starred_url":"https://api.github.com/users/aio-libs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aio-libs/subscriptions","organizations_url":"https://api.github.com/users/aio-libs/orgs","repos_url":"https://api.github.com/users/aio-libs/repos","events_url":"https://api.github.com/users/aio-libs/events{/privacy}","received_events_url":"https://api.github.com/users/aio-libs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aio-libs/aiobotocore","description":"asyncio support for botocore library using aiohttp","fork":false,"url":"https://api.github.com/repos/aio-libs/aiobotocore","forks_url":"https://api.github.com/repos/aio-libs/aiobotocore/forks","keys_url":"https://api.github.com/repos/aio-libs/aiobotocore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aio-libs/aiobotocore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aio-libs/aiobotocore/teams","hooks_url":"https://api.github.com/repos/aio-libs/aiobotocore/hooks","issue_events_url":"https://api.github.com/repos/aio-libs/aiobotocore/issues/events{/number}","events_url":"https://api.github.com/repos/aio-libs/aiobotocore/events","assignees_url":"https://api.github.com/repos/aio-libs/aiobotocore/assignees{/user}","branches_url":"https://api.github.com/repos/aio-libs/aiobotocore/branches{/branch}","tags_url":"https://api.github.com/repos/aio-libs/aiobotocore/tags","blobs_url":"https://api.github.com/repos/aio-libs/aiobotocore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aio-libs/aiobotocore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aio-libs/aiobotocore/git/refs{/sha}","trees_url":"https://api.github.com/repos/aio-libs/aiobotocore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aio-libs/aiobotocore/statuses/{sha}","languages_url":"https://api.github.com/repos/aio-libs/aiobotocore/languages","stargazers_url":"https://api.github.com/repos/aio-libs/aiobotocore/stargazers","contributors_url":"https://api.github.com/repos/aio-libs/aiobotocore/contributors","subscribers_url":"https://api.github.com/repos/aio-libs/aiobotocore/subscribers","subscription_url":"https://api.github.com/repos/aio-libs/aiobotocore/subscription","commits_url":"https://api.github.com/repos/aio-libs/aiobotocore/commits{/sha}","git_commits_url":"https://api.github.com/repos/aio-libs/aiobotocore/git/commits{/sha}","comments_url":"https://api.github.com/repos/aio-libs/aiobotocore/comments{/number}","issue_comment_url":"https://api.github.com/repos/aio-libs/aiobotocore/issues/comments{/number}","contents_url":"https://api.github.com/repos/aio-libs/aiobotocore/contents/{+path}","compare_url":"https://api.github.com/repos/aio-libs/aiobotocore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aio-libs/aiobotocore/merges","archive_url":"https://api.github.com/repos/aio-libs/aiobotocore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aio-libs/aiobotocore/downloads","issues_url":"https://api.github.com/repos/aio-libs/aiobotocore/issues{/number}","pulls_url":"https://api.github.com/repos/aio-libs/aiobotocore/pulls{/number}","milestones_url":"https://api.github.com/repos/aio-libs/aiobotocore/milestones{/number}","notifications_url":"https://api.github.com/repos/aio-libs/aiobotocore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aio-libs/aiobotocore/labels{/name}","releases_url":"https://api.github.com/repos/aio-libs/aiobotocore/releases{/id}","deployments_url":"https://api.github.com/repos/aio-libs/aiobotocore/deployments","created_at":"2015-05-31T19:28:54Z","updated_at":"2016-02-12T13:20:26Z","pushed_at":"2016-02-14T11:28:25Z","git_url":"git://github.com/aio-libs/aiobotocore.git","ssh_url":"git@github.com:aio-libs/aiobotocore.git","clone_url":"https://github.com/aio-libs/aiobotocore.git","svn_url":"https://github.com/aio-libs/aiobotocore","homepage":null,"size":70,"stargazers_count":16,"watchers_count":16,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":10,"forks":7,"open_issues":10,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/28"},"html":{"href":"https://github.com/aio-libs/aiobotocore/pull/28"},"issue":{"href":"https://api.github.com/repos/aio-libs/aiobotocore/issues/28"},"comments":{"href":"https://api.github.com/repos/aio-libs/aiobotocore/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aio-libs/aiobotocore/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/aio-libs/aiobotocore/statuses/22e974ed66eaf26e9390f07a7b73bd173f221f3e"}}}}