Skip to content

Commit

Permalink
#461: Don't forget to pass data argument forward
Browse files Browse the repository at this point in the history
  • Loading branch information
kxepal authored and asvetlov committed Aug 11, 2015
1 parent 9895f63 commit d7ed386
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,24 +488,24 @@ def head(url, **kwargs):


@asyncio.coroutine
def post(url, *, data=None, **kwargs):
def post(url, **kwargs):
ret = yield from request(hdrs.METH_POST, url, **kwargs)
return ret


@asyncio.coroutine
def put(url, *, data=None, **kwargs):
def put(url, **kwargs):
ret = yield from request(hdrs.METH_PUT, url, **kwargs)
return ret


@asyncio.coroutine
def patch(url, *, data=None, **kwargs):
def patch(url, **kwargs):
ret = yield from request(hdrs.METH_PATCH, url, **kwargs)
return ret


@asyncio.coroutine
def delete(url, *, data=None, **kwargs):
def delete(url, **kwargs):
ret = yield from request(hdrs.METH_DELETE, url, **kwargs)
return ret

0 comments on commit d7ed386

Please sign in to comment.